Yet Another IP Route setup question

Discussion in 'Linux Networking' started by raakjoer, Jun 7, 2006.

  1. raakjoer

    raakjoer Guest

    I have a linux box to be used as a router for a small offsite
    LAN...This box has 3 NICs. One will connect to a DSL modem
    (192.168.0.1/24), another will connect to a T1 point-to-point router
    (10.0.1.1/24) and another will connect to the LAN (10.0.3.0/24).

    eth0 - 192.168.0.2/24
    eth1 - 10.0.1.2/24
    eth2 - 10.0.3.1/24

    ip_forward is set to 1 so it can route across interfaces. My intention
    is to get all traffic destined for 10.0.0.0/24, 10.0.1.0/24 to go to
    the T1 router (10.0.1.1). That way Active directory, etc. will traverse
    the p2p. all other traffic (regular internet) should pass off to the
    local DSL link (192.168.0.1)....I tried putting in the default gateway
    as 192.168.0.1 and then a route for 10.0.0.0/24 via 10.0.1.1....The
    linux box itself can get to the t1 router and the dsl modem. BUT, if I
    use a client, e.g. 10.0.3.5/24 I can ping the T1 router (10.0.1.1) but
    I cannot ping the DSL modem (192.168.0.1) and cannot get to the
    internet.....The client is config'd as 10.0.3.5/24 with gw
    10.0.3.1......What am I missing?
     
    raakjoer, Jun 7, 2006
    #1
    1. Advertisements

  2. Did you nat traffic on eth0 ?
    you need this or the DSL modem need to know the route to 10.0.[0123].*
     
    Philippe WEILL, Jun 7, 2006
    #2
    1. Advertisements

  3. raakjoer

    raakjoer Guest

    Thanks, I'll look into how to enable NAT on an interface...Stupid
    oversight....me noobie..
     
    raakjoer, Jun 7, 2006
    #3
  4. raakjoer

    raakjoer Guest

    Enabled SNAT on eth0 and worked like a charm. Thanks...Now I just need
    to learn to tweak iptables!! Thanks,
     
    raakjoer, Jun 12, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.