pon connects ok to remote VPN but I cant get a route added automatically
Hi,
I have configured a VPN connection to a remote router which connects ok. I can ping the remote router IP, but cannot ping any other IP on their network. I have put this down to needing a route added. I can manually type # route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0 and all works like I want it to, but I really need this to be automatic everytime the connection starts. I have tried following http://pptpclient.sourceforge.net/ro...utomatic-setup but cant get it to work. The file is called /etc/ppp/ip-up.d/routing and has execution priviledges (755) so ive hit a dead end. Ive even tried shrinking the file down to #!/bin/sh if [ "${PPP_IPPARAM}" = "tunnel" ]; then /sbin/route add -net 192.168.1.0/24 dev ${IFNAME} fi But still nothing :( Hope you can help. Dave Debian Lenny 2.6.26-2-686 base install (no desktop) with all updates /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.05.xx netmask 255.255.255.0 gateway 192.168.05.xx auto ppp0 iface ppp0 inet ppp provider host1 /etc/ppp/options.pptp lock noauth refuse-pap refuse-eap refuse-chap refuse-mschap nobsdcomp nodeflate require-mppe-128 /etc/ppp/peers/host1 pty "pptp ipofremotehost --nolaunchpppd" name loginname1 remotename PPTP require-mppe-128 file /etc/ppp/options.pptp ipparam host1 persist |
Quote:
|
Fixed
Thanks Neonsignal, thought it would be something simple that I was missing.
Once I changed the /etc/ppp/ip-up.d/routing file to #!/bin/sh if [ "${PPP_IPPARAM}" = "host1" ]; then /sbin/route add -net 192.168.1.0/24 dev ${IFNAME} fi It all started working as normal. Thanks again |
where can I assign a static IP for my VPN ppp connection
This connection works fine getting its IP address from the remote router, but how would I setup a static IP for this ppp connection?
I can see localip:remoteip in the man pppd pages but I can only get the point to point ip to change, not the inet addr of the ppp0 connection. |
All times are GMT -5. The time now is 07:38 PM. |