[PLUG] default Gatewate rules

Josh Orchard josh at emediatedesigns.com
Fri Oct 29 04:17:37 UTC 2004


> Josh Orchard wrote:
>>
>> I have two nic cards. One connected to an external/internet
>> connection
>> and the other to an internal network.  Now I have a VPN connection
>> that I make on the external connection and it changes my default
>> gateway so I can no longer get to my internal network.
>
> Yea.. that's a pain.
> If you're on windows, uncheck "use default gateway on server" in the
> VPN
> connection (advanced) settings. It will then assume classful
> networks..
> and route vpn traffic accordingly (sigh).
> You can much with windows' routing table the same as:
>
> If you're using *nix, just:
> a) change your default gateway to what you normally use.
> b) add a route for what you need to go through the vpn, to go through
> the tunnel.
> optional, to avoid a,b) configure your client to *not* change your
> default route. It should only send traffic through the tunnel that's
> destined for the remote subnet.
>
> Alternatively, just add a route for your local subnet. It will match,
> instead of the default route.
> route add -net 10.0.0.1 netmask 255.255.255.0 dev eth0
> (assuming you use 10.0.0.0/24 and its on eth0)
>
> -Charlie

Thanks Charlie.  I suspected as much.  I'll see what I can do.  This
helps a lot.

Josh



More information about the PLUG mailing list