Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2005
a linux router behind an ADSL router
I have been unable to use the ADSL router/modem as a bridge to connect via my linux system using PPPOE.
Thus I want to set up a Linux router behind my ADSL router modem.
ADSL LAN interface : 10.0.0.2
Linux router interface to ADSL router: 10.0.0.1 (eth0)
I want two of my networks 192.168.0.0/24 & 192.168.1.0/24 to use my linux router as the gateway to the Internet. ( i.e i don't want them to use the ADSL router as the gateway...i want them to pass thru a firewall on my Linux box)
How do I do that since I don't have a ppp0 interface ?
Basically you have to set up the Linux box to route from eth[1,2] out through eth0 as well as enable packet forwarding.
The better way to do this involves using IPTables and NAT to route everything from the eth's out eth0. The obvious first step is to make sure eth0 is working properly and that you can get online with the Linux box. Once this is confirmed, set up IPTables to NAT everything.
Someone else can explain this if they get here before I have a chance, but I'm short on time just now....
Or check out http://www.netfilter.org and start researching it on your own."Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy