LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Home LAN Setup (https://www.linuxquestions.org/questions/linux-networking-3/home-lan-setup-439481/)

bLaDe 04-27-2006 05:49 PM

Home LAN Setup
 
Hi there Guys,
I've got myself in a bit of a pickle. I am trying to setup my FC5 box at home to take care of the internet connection using rp-pppoe. I tried the other day without a huge amount of success.

I have my ADSL2 modem / router in Pure bridged mode which from my understanding just forwards packets off to the interface, to that a cable going directly into eth0 on the linux box

eth1 (2nd nic) in the linux box then goes off to a switch and rest of the network.

I can establish a connection from the linux box using rp-pppoe and browse sites no worries at all from the linux box but not on windows, I can't even ping IP's but I am close I feel and it can only be something simple.

Where my confusion sets in is eth0 is set to use DHCP, do I need an IP address, subnet mask etc set on this one?

I have eth1 set to 172.17.12.1 as the IP and 172.17.12.254 as the gateway.

Should I need to set eth0 with an IP of some description, ppp0 gets an IP from my provider (dynamic) so I'm thinking perhaps I do the iptables to ppp0 rather than eth0?

Any help would be great, as I mentioned previously I feel I am very close but not entirely sure where I'm going wrong.


Thanks


Cheers
Darren

ataraxia 04-27-2006 06:06 PM

I don't have DSL (I have cable instead), so I can't help with DSL-specific things like the difference between ppp0 and eth0, but...

If an interface uses DHCP, you don't have to set any other parameters for it.

In order to forward packets from eth1 to eth0, you have to explicitly allow forwarding. This is done by setting "net.ipv4.ip_forward=1" in /etc/sysctl.conf. If you want it to take effect before you reboot you can run "sysctl -w net.ipv4.ip_forward=1" as root.

Brian1 04-27-2006 06:07 PM

Have you enable IP Forwarding? If not that is what you need to do to allow network traffic to cross from eth1 to eth0. Also do not define a gateway on eth1. It will confuse a simple setup. You can leave eth0 as dhcp. Check out this site to build a simple firewall script and sets up ip forwarding for you as well all in one script.
http://easyfwgen.morizot.net/gen/

Brian1

bLaDe 04-28-2006 07:03 AM

Thanks for your help guys, I messed up my iptables.

I put in eth0 where it should have been ppp0, it was easy once I used that generator, I could see exactly where I went wrong.

Thanks again..

Cheers
Darren


All times are GMT -5. The time now is 12:56 PM.