Women in Technology

Hear us Roar

Weblog:   PPTP VPNs in Jaguar
Subject:   If only i could choose default routes
Date:   2002-09-14 12:34:03
From:   anonymous2
Under network prefs go to 'Network Port Configuration'

It says right there that the order the interfaces are listed in the box will be the search order, simply put your local interface above the PPTP interface.

I think that would make the local interface the default route but I do not have a vpn to test with.

Full Threads Newest First

Showing messages 1 through 3 of 3.

  • If only i could choose default routes
    2002-10-17 11:35:15  afrenier [View]

    This fix does not work. That only comes into play when the machine has no network connection at all - it decides which one to try first based on the order in that dialog. There are some apps out there that allow you to start a PPTP connection (PiePants and DigiTunnel, among others) but none of them appears to work with Jaguar (10.2)... so I am stuck. There is a built-in pptp client in Jaguar, which connects fine but doesn't have an option to disable default route. I have tried the following (in a terminal window)

    sudo route delete default
    [enter password]
    sudo route add default [ip of real gateway here]

    And that appears to work, but after a few minutes it stops working and I have to disconnect the pptp connection in order to get internet again. Any clues?
    • If only i could choose default routes
      2003-03-31 23:26:45  anonymous2 [View]

      After setting up the VPN connection, try running the following script. You will of course need to change the IP addresses to fit your needs. In the example below, is the local network, and is the remote network we are vpn'd to. This is self-healing; when the vpn is disconnected the routes will fix themselves.

      # delete the broken default route
      sudo route delete default

      # add the route to the vpn network
      # via the pptp interface
      sudo route add -net \
      -netmask -interface ppp0

      # set the new default route
      sudo route add default
      • If only i could choose default routes
        2004-11-18 23:36:56  avidan [View]

        Now, does anyone know a way to get this script to run automatically everytime i connect via pptp vpn?

Showing messages 1 through 3 of 3.