To make sure our traffic gets routed to the other end of the tunnel, create a file called ip-up in /etc/ppp and add the following lines to this file:
#!/bin/sh
/sbin/route add -net REMOTE-NET-IP netmask REMOTE-NET-MASK dev ppp
eg :
route add -net 10.20.254.248 netmask 255.255.255.248 dev ppp0
In which you have to replace the IP-address and the mask with those of the subnet on the other end of the tunnel. If there is no network on the other side, but just the pptp server, you can use -host instead of -net. When your done, save the file and make it executable:
chmod +x /etc/ppp/ip-up
Now that all is set up we can start the tunnel:
Comments
(There are currently no comments for this post.)