0

I have below ppp0 config under peers directory

pty "pptp vpnserveraddress.com --nolaunchpppd"
name vpnusername
password vpnpassword
remotename PPTP
require-mppe-128
defaultroute
usepeerdns
debug

after connecting the route does not get added with error not replacing existing default route via eth0_default_gw_route_ip.

Also ping -I ppp0 google.comgives nothing.

What am I missing here in the config?

I am doing this on centos.

BTR Naidu
  • 627
  • 1
  • 7
  • 14
  • If you want to force replacing the default route (which may result in loosing connectivity), you have to use the ip-up script facility of pppd – Dan May 18 '15 at 16:27
  • Indeed. I did that and as you said, i lost the connectivity. I would first wish to get ping -I ppp0 working. Otherwise making ppp0 the default route does not make any sense. – BTR Naidu May 18 '15 at 16:33
  • Told you :) You have to have a specific route for the vpn peer through your normal gateway. Then you can play with switching default route through vpn – Dan May 19 '15 at 09:05
  • Inspite of specific routes, why **ping -I ppp0 google.com** does not result anything. I guess modifying the default route only makes sense once the above works smoothly? – BTR Naidu May 19 '15 at 09:37
  • True. For that ping to work, you have to get a valid and routed ip address on the ppp0 interface, from the vpn provider. – Dan May 19 '15 at 18:26

0 Answers0