I am using PPTP to connect to my office Win2K VPN server. I've successfully set up PPTP 1.4.0 and PPP 2.4.2 and have compiled MPPE into the kernel. The connection is working fine, but now I am having some routing problems. Let me explain my network setup:
Cable modem connected to Linux box which is running iptables for a firewall and also handing masquerading for all other boxes behind the firewall box.
The box that I'm running PPTP on to make the VPN connection is behind the firewalled box. The network the VPN server puts me on is 66.119.14.0. Here is what my routing table looks like after the connection:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
66.119.14.61 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Here is what ifconfig shows for the ppp0 device:
Code:
ppp0 Link encap:Point-to-Point Protocol
inet addr:66.119.14.62 P-t-P:66.119.14.61 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:144 (144.0 b) TX bytes:80 (80.0 b)
I want all traffic destined for the 66.119.14.0 network to go through the VPN connection. As it is, a traceroute to an IP on the 66.119.14.0 network goes out through the default route using the 192.168.0.1 gateway on the eth0 device. This is not what I want, so after the connection is made, I add this to the routing table:
route add -net 66.119.14.0 netmask 255.255.255.0 gw 66.119.14.61 dev ppp0
After adding this to the routing table, I can no longer reach the 66.119.14.0 network. I'm not a network guru, so I am a bit lost at this point. Can someone please help me with this? The box that is trying to make the connection to the VPN server is Slackware 10.0 running kernel version 2.4.26. Thanks in advance.