| 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'
|
||
Showing messages 1 through 3 of 3.
-
If only i could choose default routes
2002-10-17 11:35:15 afrenier [Reply | View]
-
If only i could choose default routes
2003-03-31 23:26:45 anonymous2 [Reply | 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, 192.168.100.0/24 is the local network, and 192.168.1.0/24 is the remote network we are vpn'd to. This is self-healing; when the vpn is disconnected the routes will fix themselves.
#!/bin/sh
# delete the broken default route
sudo route delete default
# add the route to the vpn network
# via the pptp interface
sudo route add -net 192.168.1.0 \
-netmask 255.255.255.0 -interface ppp0
# set the new default route
sudo route add default 192.168.100.254
| Showing messages 1 through 3 of 3. |




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?