Hi, I've downloaded a script for using pptp and pppd for connecting to a (pptp) VPN-server.
But the connection fails... If someone could help me figure out why, I'd be really greatful.
script output:
VPN for NHH Linux startup script
Found Gateway 10.162.1.2
Found nameservers: 10.160.1.1 10.160.1.2
Starting pptp connection to NHH VPN gateway
Could not start pptp connection to vpn server
Please take a look at /var/log/messages for output log
These are the lines where the script fails, between
Starting pptp connection to NHH VPN gateway
Could not start pptp connection to vpn server
${PPTP_BIN} $VPN_TARGET_ADDRESS file $OPTIONS_FILE &
sleep 8
PPP_DEVICE=`ifconfig|grep -v ppp0|grep ppp|awk ' { print $1}'`
This is what's written in /var/log/messages:
Feb 21 22:11:14 localhost kernel: GRE over IPv4 tunneling driver
Feb 21 22:11:14 localhost pptp[6766]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:580]: Client connection established.
Feb 21 22:11:16 localhost hald[4408]: Timed out waiting for hotplug event 819. Rebasing to 827
Feb 21 22:11:21 localhost pptp[6766]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:708]: Outgoing call established (call ID 0, peer's call ID 50317).
Feb 21 22:11:22 localhost kernel: CSLIP: code copyright 1989 Regents of the University of California
Feb 21 22:11:22 localhost kernel: PPP generic driver version 2.4.2
Feb 21 22:11:22 localhost pppd[6831]: pppd 2.4.2 started by root, uid 0
Feb 21 22:11:22 localhost pppd[6831]: Using interface ppp0
Feb 21 22:11:22 localhost pppd[6831]: Connect: ppp0 <--> /dev/pts/3
Feb 21 22:11:23 localhost pptp[6766]: log[call_callback:pptp_callmgr.c:88]: Closing connection
Feb 21 22:11:23 localhost pppd[6831]: Hangup (SIGHUP)
Feb 21 22:11:23 localhost pppd[6831]: Modem hangup
Feb 21 22:11:23 localhost pppd[6831]: Connection terminated.
Feb 21 22:11:25 localhost pppd[6831]: Exit.
|