static route issue

Discussion in 'Tomato Firmware' started by dadaniel, Apr 5, 2010.

  1. dadaniel

    dadaniel Network Guru Member

    i need the following settings to establish my internet connection:

    wan/internet type: PPTP

    And one static route to make the PPTP connection work: via

    Adding a static route in "Advanced - Routing" does not work, the route never appears.

    Adding the route via telnet works, but the route is deleted when PPTP starts calling (WHY??)
    route add -net netmask gw

    PLEASE help me!
  2. mstombs

    mstombs Network Guru Member

    I don't know why your static route doesn't work, but...

    try adding your telnet route to the Firewall script, I believe the route table is flushed before this is run.
  3. dadaniel

    dadaniel Network Guru Member

    I tried this before, and also in the other scripts but it does not work. Any other ideas?
  4. mstombs

    mstombs Network Guru Member

    Looking again at your custom route command, looks like you have the old issue that the gateway is not in the network defined by the IP address and the netmask (so the OS doesn't know what interface it is on). To fix this you need a host route for the gateway first, of the form

    route add -host dev $IF
    where $IF is the WAN interface, vlan1/2 for dhcp WRT/RTN16 routers, not sure if custom ppp0 or similar for pptp?
  5. dadaniel

    dadaniel Network Guru Member

    That does not seem to be the problem, because when adding the route via telnet, a ping to (the PPTP server) works, but when PPTP dialup starts this route gets deleted and ping does not work anymore :(
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice