Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    1

    a linux router behind an ADSL router


    Hi,
    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)
    eth1: 192.168.0.1
    eth2: 192.168.1.1

    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 ?

    Please help

    thanks

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •