On Sun, Feb 12, 2006 at 01:43:45AM -0600, Travis H. wrote: > > I got a VPN set up but I'm wondering how to make all traffic go over > the VPN to the remote end, which is a gateway to the internet. > > If I mess with my default route, my traffic stops flowing at all.
if you want all traffic to go to the VPN peer instead of to the normal gateway, you will (most likely) need to change your default route. it would've been good in this case to have posted the output of your routing tables prior to the 'messing' and then after, which could've shown why things didn't work. 'route change' seems a bit harder to use than deleting and then readding a route with the differences in place, but it could be that i misunderstand the intent of route change. anyway, since it's all guesses as to what your setup is, i'll guess that your (usual) default gateway is on the same subnet as your external iface, and that your VPN peer is not on the same subnet. in that case i would set the destination for my default route to be the tunnel (assuming you're using tunnel) IP of the remote host, and then a regular host route with a destination of that VPN peer's regular IP and a gateway of what your default gateway originally was. > Related to this, what is the normal way of setting up static routes? $ sudo route add -- jared [ openbsd 3.9-beta GENERIC ( jan 30 ) // i386 ]
