View previous topic :: View next topic |
Author |
Message |
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Thu Mar 27, 2003 11:04 am Post subject: I'm making my Gentoo box my LAN Gateway, help please. |
|
|
Hi there,
Since my initial install of Gentoo onto a spare system Ive kept it rather low profile and basically a small non GUI Server doing small things like FTP, Apache, DNS etc.
I want to now, however, make Gentoo also be my LAN Gateway to my ADSL Internet.
It only has a single Network Card, but considering in Windows I can be connected to ADSL, and share the Internet through the same Network card (My entire network is connected thru my switch, modem/router, and all PCs) I expect it to work the same with Gentoo.
My question is, when I installed Gentoo, I only gave it the options in kernel compile for the stuff it needed.
What stuff do I need to give it now in "make menuconfig" to ensure I can now use gentoo as a Gateway for my LAN to my ADSL (PPPoE).
I plan to run uPnP, Net-filter, port forwarding, and all modules for IRC and everything. |
|
Back to top |
|
|
reillyeon n00b
Joined: 26 Mar 2003 Posts: 44 Location: Boston (ish)
|
Posted: Thu Mar 27, 2003 12:49 pm Post subject: |
|
|
I run the same setup here except I have two NICs which is generally recomended. In order to do PPPoE you need to enable PPP in menuconfig (Under Network Device Options) and under that all the non EXPARAMENTAL options. Then you need to emerge rp-pppoe. That provides pppd and the pppoe client as well as the adsl-setup, adsl-start, and adsl-stop scripts that you can use.
NOTE: The firewall options in adsl-setup use ipchains not iptables so they don't work. You need to do it manually. |
|
Back to top |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Thu Mar 27, 2003 12:59 pm Post subject: |
|
|
Yeh I think Ive enabled all PPP stuff.
Im compiling it now, probably take overnight cos its on a Celery 266. |
|
Back to top |
|
|
reillyeon n00b
Joined: 26 Mar 2003 Posts: 44 Location: Boston (ish)
|
Posted: Thu Mar 27, 2003 1:03 pm Post subject: |
|
|
Probably should have mentioned that you need to enable iptables in the Netfilter options and all the differtent matchers and other stuff there. This will give you the firewall and NAT and stuff. |
|
Back to top |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Thu Mar 27, 2003 1:12 pm Post subject: |
|
|
Yep Im fairly certain I enabled iptables in Net-filter. |
|
Back to top |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Thu Mar 27, 2003 2:13 pm Post subject: |
|
|
OK. I got it working now.
Works perfect, ADSL and my LAN from the same nic!
Now to get iptables and all the modules to share the ADSL flawlessly...
cheers guys |
|
Back to top |
|
|
paul138 Guru
Joined: 09 Aug 2002 Posts: 370 Location: Ottawa, ON
|
Posted: Thu Mar 27, 2003 5:05 pm Post subject: |
|
|
Try Shorewall for your iptables stuff. It's very simple. (maybe masked). _________________ Talk is cheap because supply always exceeds demand. |
|
Back to top |
|
|
|