On Thu, 14 Jun 2007 10:05:29 +0200 (CEST), Sword Spider
<(E-Mail Removed)> wrote:
>
>
> I've had a maddening few hours trying to get my home Debian box
> connected to my employer's VPN... I've gone through hundreds of
> instruction lists that Google turned up, but not one of them seems to
> have the precise incantation required.
>
> Here is my normal pre-VPN routing table:
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
> default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
>
> Here 192.168.1.1 is my router, and other addresses 192.168.1.* are
> machines on my home LAN.
>
> I now run PPTP to connect to the VPN server 9.10.11.12, authentication
> works fine, and:
>
> 1) ifconfig ppp0 gives the line
> inet addr:1.2.3.4 P-t-P:5.6.7.8 Mask:255.255.255.255
>
> Both addresses in this line are clearly dynamically assigned to this VPN
> connection by the server.
>
> 2) route -n now shows
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 5.6.7.8 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
> default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
>
> What I want is to tunnel everything through the VPN connection apart
> from LAN traffic. What I'd like to know is: what should the routing
> table look like for that? All these damn guides on the internet give a
> list of a few combinations of "route add" and "route del" commands, but
> none of them think to show the routing table you're meant to end up
> with!
>
Remove the default gateway on 192.168.1.1 and set 5.6.7.8 as the default
gateway.
> Next question will be: what about nameservers? Do I need to add my home
> ISP nameservers to the routing table?
>
Your nameservers should be in /etc/resolv.conf. When the VPN connection
is up, you might want to add your employer's or their ISP's nameservers.
> Thanks in advance.
>
--
People are unconditionally guaranteed to be full of defects.
|