Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi everyone,
I am trying to set up Linux as a gateway for my other four Pc's at home. I have a ADSL connection that is connecting into my Computer thrue a NIC. I have two Ethernet cards, One for the adsl connection and the other one for for the other computer (Connected to a Hub and so own..).I setup my Network and can ping from any computer and I have forwarding turned on. I used the Red Hat linux tool "adsl-setup" & "adsl-start/adsl-stop" to connect to the Net. My problem is now what? I tryed to set up a "PPP Server". My books and the Howtos only explane how to do this with a modem but not thrue a NIC. "ppp /dev/ttyS1 115700 crtscts".
How do I setup I PPP Server with Adsl with two Network cards.?
Thanks :)
Alexander

First of all, DSL connections over ethernet don't work like PPP. All you need to do for the DSL NIC is configure DHCP. I don't use RH, but I'm sure it has some sort of graphical tool to configure networking.
Then, configure your other NIC with the static IP of 192.168.1.1, netmask 255.255.255.0. Configure the other computers with 192.168.1.anything, same netmask, and 192.168.1.1 as the gateway.
You'll also need to enable port forwarding and masquerading. I don't know RH's init scripts, so I can't tell you where to put these commands so they run every time you boot, but you need to do this:
"modprobe iptable_nat"
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE"
If DSL isn't on eth0, change it to the NIC it is on (run ifconfig for details)"echo 1 > /proc/sys/net/ipv4/ip_forward"

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |