[Sstp-client-devel] Can run with sstpc but fails with pon
Brought to you by:
eivnaes
From: Anthony W. <yp...@an...> - 2014-07-12 15:21:00
|
Hi, I am very new with this program so I appreciate any help with my question. After much testing, I can finally make sstpc to connect to a remote VPN server from the command line, but it fails when using pon. The command I use that can connect successfully is: $ sstpc --save-server-route --log-level 4 --cert-warn --user myusername --password mypassword remote_vpn_server usepeerdns require-mschap-v2 refuse-eap noauth debug Jul 12 20:23:11 raspberrypi sstpc[3483]: Server certificated failed verification, ignoring Jul 12 20:23:11 raspberrypi pppd[3493]: pppd 2.4.5 started by root, uid 0 Jul 12 20:23:11 raspberrypi pppd[3493]: using channel 16 Jul 12 20:23:11 raspberrypi pppd[3493]: Using interface ppp0 Jul 12 20:23:11 raspberrypi pppd[3493]: Connect: ppp0 <--> /dev/pts/8 Jul 12 20:23:11 raspberrypi pppd[3493]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2407da70> <pcomp> <accomp>] Jul 12 20:23:11 raspberrypi pppd[3493]: rcvd [LCP ConfNak id=0x1 <magic 0x13e64829>] Jul 12 20:23:11 raspberrypi pppd[3493]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x2ccebdd8> <pcomp> <accomp>] Jul 12 20:23:11 raspberrypi pppd[3493]: rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>] Jul 12 20:23:11 raspberrypi pppd[3493]: rcvd [LCP ConfRej id=0x2 <asyncmap 0x0> <pcomp> <accomp>] Jul 12 20:23:11 raspberrypi pppd[3493]: sent [LCP ConfReq id=0x3 <magic 0x2ccebdd8>] Jul 12 20:23:12 raspberrypi pppd[3493]: rcvd [LCP ConfAck id=0x3 <magic 0x2ccebdd8>] Jul 12 20:23:14 raspberrypi pppd[3493]: rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <magic 0x2fc6cf29> <mru 1400>] Jul 12 20:23:14 raspberrypi pppd[3493]: sent [LCP ConfAck id=0x1 <auth chap MS-v2> <magic 0x2fc6cf29> <mru 1400>] Jul 12 20:23:14 raspberrypi pppd[3493]: sent [LCP EchoReq id=0x0 magic=0x2ccebdd8] Jul 12 20:23:14 raspberrypi pppd[3493]: rcvd [CHAP Challenge id=0x1 <598383abe0568b21f860a4d2bbcbe3fc>, name = ""] Jul 12 20:23:14 raspberrypi pppd[3493]: sent [CHAP Response id=0x1 <1c78047f93ef3336a4a3ce4ba3dadbf500000000000000006b3b914a4aba149183414c329ed558d6f124fe75617d73c900>, name = "xxxxxxxx"] Jul 12 20:23:14 raspberrypi pppd[3493]: rcvd [LCP EchoRep id=0x0 magic=0x2fc6cf29] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [CHAP Success id=0x1 "S=83B340499E80A55D917B7DE39424A39D00CC8955 M=Authentication succeeded"] Jul 12 20:23:15 raspberrypi pppd[3493]: CHAP authentication succeeded Jul 12 20:23:15 raspberrypi pppd[3493]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [IPCP ConfReq id=0x1 <addr 198.18.128.1>] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [IPCP ConfAck id=0x1 <addr 198.18.128.1>] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [CCP ConfReq id=0x1] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [CCP ConfAck id=0x1] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [CCP ConfReq id=0x2] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [CCP ConfAck id=0x2] Jul 12 20:23:15 raspberrypi pppd[3493]: rcvd [IPCP ConfNak id=0x2 <addr 198.18.128.245> <ms-dns1 198.18.128.1>] Jul 12 20:23:15 raspberrypi pppd[3493]: sent [IPCP ConfReq id=0x3 <addr 198.18.128.245> <ms-dns1 198.18.128.1> <ms-dns2 0.0.0.0>] Jul 12 20:23:16 raspberrypi pppd[3493]: rcvd [IPCP ConfAck id=0x3 <addr 198.18.128.245> <ms-dns1 198.18.128.1> <ms-dns2 0.0.0.0>] Jul 12 20:23:16 raspberrypi pppd[3493]: local IP address 198.18.128.245 Jul 12 20:23:16 raspberrypi pppd[3493]: remote IP address 198.18.128.1 Jul 12 20:23:16 raspberrypi pppd[3493]: primary DNS address 198.18.128.1 Jul 12 20:23:16 raspberrypi pppd[3493]: Script /etc/ppp/ip-up started (pid 3546) Jul 12 20:23:17 raspberrypi pppd[3493]: Script /etc/ppp/ip-up finished (pid 3546), status = 0x0 Jul 12 20:23:18 raspberrypi ntpd[2141]: Listen normally on 11 ppp0 198.18.128.245 UDP 123 Jul 12 20:23:18 raspberrypi ntpd[2141]: 202.118.1.130 interface 192.168.0.101 -> 198.18.128.245 Jul 12 20:23:18 raspberrypi ntpd[2141]: 202.120.2.101 interface 192.168.0.101 -> 198.18.128.245 Jul 12 20:23:18 raspberrypi ntpd[2141]: 202.112.29.82 interface 192.168.0.101 -> 198.18.128.245 Jul 12 20:23:18 raspberrypi ntpd[2141]: peers refreshed But I have tried many times with pon, both on a standard Ubuntu 14.04 and Raspbian. My config and logs on Raspbian are as follows. Anyone has any ideas what is going wrong? Is there any way to output more debug messages for troubleshooting? /etc/ppp/chap-secrets: xxxxxxxx * password * /etc/ppp/peers/vpn: remotename vpn linkname vpn ipparam vpn pty "sstpc --ipparam vpn --nolaunchpppd --log-level 5 --log-stderr --cert-warn remote_vpn_server" name xxxxxxxx plugin sstp-pppd-plugin.so sstp-sock /var/run/sstpc/sstpc-vpn usepeerdns require-mschap-v2 refuse-eap refuse-pap refuse-chap require-mschap nobsdcomp nodeflate noauth debug /var/log/syslog: Jul 12 23:15:04 raspberrypi pppd[1823]: Plugin sstp-pppd-plugin.so loaded. Jul 12 23:15:04 raspberrypi pppd[1830]: pppd 2.4.5 started by root, uid 0 Jul 12 23:15:04 raspberrypi pppd[1830]: using channel 28 Jul 12 23:15:04 raspberrypi pppd[1830]: Using interface ppp0 Jul 12 23:15:04 raspberrypi pppd[1830]: Connect: ppp0 <--> /dev/pts/8 Jul 12 23:15:04 raspberrypi pppd[1830]: Script sstpc --ipparam vpn --nolaunchpppd --log-level 5 --log-stderr --cert-warn remote_vpn_server finished (pid 1831), status = 0xff Jul 12 23:15:04 raspberrypi pppd[1830]: Modem hangup Jul 12 23:15:04 raspberrypi pppd[1830]: Connection terminated. Jul 12 23:15:04 raspberrypi pppd[1830]: Exit. /var/log/debug: Jul 12 23:15:04 raspberrypi pppd[1830]: using channel 28 Jul 12 23:15:04 raspberrypi pppd[1830]: Script sstpc --ipparam vpn --nolaunchpppd --log-level 5 --log-stderr --cert-warn remote_vpn_server finished (pid 1831), status = 0xff Thanks, Anthony |