> I'm connecting to my work VPN network through Mac OS X's native VPN
> client (right now on Panther 7B68, but I was told by coworkers that
> this behavior is the same on Jaguar).
> It works quite well, but when I'm connected to the VPN (PPTP), I can't
> access my home network (and the Internet). For some reason, the VPN
> connexion sets itself as the default route.
> OS X's normal behavior, if I'm not mistaken, is that routing
> priorities are set according to the place of the ports in System
> Prefs/Network/Show: Network port configuration. Airport is placed
> first and VPN is placed last. Airport should stay the default route
> even when I establish a VPN connection.
> The only way I have found to fix this problem is ugly: I establish a
> VPN connexion, lose my LAN & Internet connexion, open a root terminal
> where I type:
> route delete default
> route add default 192.168.0.127 (my local gateway)
> route add 10. 10.0.10.248 (the gateway on the VPN side)
> and everything is back to normal.
> This solution is ugly, because 1. I lose my LAN & Internet connexion
> for a few seconds every time and 2. I must know my gateway (if I
> connect from a place I'm not used, I don't know it).
> Sure, I can write an AppleScript that does most of the work for me,
> but that's a less-than-perfect solution.
> Is there any way to to it better?