LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   VPN pptpd Connects Once, Won't Connect Twice?@%* (http://www.linuxquestions.org/questions/linux-server-73/vpn-pptpd-connects-once-wont-connect-twice-%40%2A-4175439531/)

Fcukinyahoo 11-30-2012 11:55 PM

VPN pptpd Connects Once, Won't Connect Twice?@%*
 
I dont get it. I setup pptpd on CentOS6.3, I m testing it, I can connect to the server the first time after reboot. Then I disconnect my from client to test the connection again, but it won't connect to the VPN second time :) I really dont get it. Here is /var/log/messages for you...

Code:

Nov 30 23:28:56 test pptpd[1221]: MGR: Maximum of 100 connections reduced to 6, not enough IP addresses given
Nov 30 23:28:56 test pptpd[1222]: MGR: Manager process started
Nov 30 23:28:56 test pptpd[1222]: MGR: Maximum of 6 connections available
Nov 30 23:30:06 test pptpd[1299]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Nov 30 23:30:06 test pptpd[1299]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 23:30:06 test pppd[1300]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Nov 30 23:30:06 test kernel: PPP generic driver version 2.4.2
Nov 30 23:30:06 test pppd[1300]: pppd 2.4.5 started by root, uid 0
Nov 30 23:30:06 test pppd[1300]: Using interface ppp0
Nov 30 23:30:06 test pppd[1300]: Connect: ppp0 <--> /dev/pts/1
Nov 30 23:30:10 test kernel: PPP MPPE Compression module registered
Nov 30 23:30:10 test pppd[1300]: MPPE 128-bit stateless compression enabled
Nov 30 23:30:10 test pppd[1300]: found interface eth0 for proxy arp
Nov 30 23:30:10 test pppd[1300]: local  IP address 192.168.1.20
Nov 30 23:30:10 test pppd[1300]: remote IP address 192.168.1.80
Nov 30 23:31:43 test pppd[1300]: LCP terminated by peer (MPPE disabled)
Nov 30 23:31:43 test pppd[1300]: Connect time 1.6 minutes.
Nov 30 23:31:43 test pppd[1300]: Sent 635302 bytes, received 44565 bytes.
Nov 30 23:31:43 test pptpd[1299]: CTRL: EOF or bad error reading ctrl packet length.
Nov 30 23:31:43 test pptpd[1299]: CTRL: couldn't read packet header (exit)
Nov 30 23:31:43 test pptpd[1299]: CTRL: CTRL read failed
Nov 30 23:31:43 test pppd[1300]: Modem hangup
Nov 30 23:31:43 test pppd[1300]: Connection terminated.
Nov 30 23:31:43 test pppd[1300]: Exit.
Nov 30 23:31:43 test pptpd[1299]: CTRL: Client xxx.xxx.xxx.xxx control connection finished
Nov 30 23:32:00 test pptpd[1403]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Nov 30 23:32:00 test pptpd[1403]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 23:32:00 test pppd[1404]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Nov 30 23:32:00 test pppd[1404]: pppd 2.4.5 started by root, uid 0
Nov 30 23:32:00 test pppd[1404]: Using interface ppp0
Nov 30 23:32:00 test pppd[1404]: Connect: ppp0 <--> /dev/pts/1
Nov 30 23:32:13 test pptpd[1403]: CTRL: EOF or bad error reading ctrl packet length.
Nov 30 23:32:13 test pptpd[1403]: CTRL: couldn't read packet header (exit)
Nov 30 23:32:13 test pptpd[1403]: CTRL: CTRL read failed
Nov 30 23:32:13 test pppd[1404]: Modem hangup
Nov 30 23:32:13 test pppd[1404]: Connection terminated.
Nov 30 23:32:13 test pppd[1404]: Exit.
Nov 30 23:32:13 test pptpd[1403]: CTRL: Client xxx.xxx.xxx.xxx control connection finished
Nov 30 23:32:14 test ntpd[1214]: synchronized to xxx.xxx.xxx.xxx, stratum 1
Nov 30 23:32:14 test ntpd[1214]: time reset -0.535997 s
Nov 30 23:34:11 test pptpd[1485]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Nov 30 23:34:11 test pptpd[1485]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 23:34:11 test pppd[1486]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Nov 30 23:34:11 test pppd[1486]: pppd 2.4.5 started by root, uid 0
Nov 30 23:34:11 test pppd[1486]: Using interface ppp0
Nov 30 23:34:11 test pppd[1486]: Connect: ppp0 <--> /dev/pts/1
Nov 30 23:34:41 test pppd[1486]: LCP: timeout sending Config-Requests
Nov 30 23:34:41 test pppd[1486]: Connection terminated.
Nov 30 23:34:41 test pptpd[1485]: CTRL: EOF or bad error reading ctrl packet length.
Nov 30 23:34:41 test pptpd[1485]: CTRL: couldn't read packet header (exit)
Nov 30 23:34:41 test pptpd[1485]: CTRL: CTRL read failed
Nov 30 23:34:41 test pppd[1486]: Modem hangup
Nov 30 23:34:41 test pppd[1486]: Exit.
Nov 30 23:34:41 test pptpd[1485]: CTRL: Client xxx.xxx.xxx.xxx control connection finished
Nov 30 23:36:20 test ntpd[1214]: synchronized to xxx.xxx.xxx.xxx, stratum 1
Nov 30 23:48:03 test ntpd[1214]: kernel time sync status change 2001
Nov 30 23:52:29 test pptpd[1742]: CTRL: Client 192.168.1.1 control connection started
Nov 30 23:52:29 test pptpd[1742]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 23:52:29 test pppd[1743]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Nov 30 23:52:29 test pppd[1743]: pppd 2.4.5 started by root, uid 0
Nov 30 23:52:29 test pppd[1743]: Using interface ppp0
Nov 30 23:52:29 test pppd[1743]: Connect: ppp0 <--> /dev/pts/1
Nov 30 23:52:29 test pptpd[1742]: GRE: read(fd=7,buffer=6097c0,len=8260) from network failed: status = -1 error = Protocol not available
Nov 30 23:52:29 test pptpd[1742]: CTRL: GRE read or PTY write failed (gre,pty)=(7,6)
Nov 30 23:52:29 test pppd[1743]: Modem hangup
Nov 30 23:52:29 test pppd[1743]: Connection terminated.
Nov 30 23:52:29 test pppd[1743]: Exit.
Nov 30 23:52:29 test pptpd[1742]: CTRL: Client 192.168.1.1 control connection finished
Nov 30 23:52:51 test pptpd[1759]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Nov 30 23:52:51 test pptpd[1759]: CTRL: Starting call (launching pppd, opening GRE)
Nov 30 23:52:51 test pppd[1760]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Nov 30 23:52:51 test pppd[1760]: pppd 2.4.5 started by root, uid 0
Nov 30 23:52:51 test pppd[1760]: Using interface ppp0
Nov 30 23:52:51 test pppd[1760]: Connect: ppp0 <--> /dev/pts/1
Nov 30 23:53:21 test pppd[1760]: LCP: timeout sending Config-Requests
Nov 30 23:53:21 test pppd[1760]: Connection terminated.
Nov 30 23:53:21 test pptpd[1759]: CTRL: EOF or bad error reading ctrl packet length.
Nov 30 23:53:21 test pptpd[1759]: CTRL: couldn't read packet header (exit)
Nov 30 23:53:21 test pptpd[1759]: CTRL: CTRL read failed
Nov 30 23:53:21 test pppd[1760]: Modem hangup
Nov 30 23:53:21 test pppd[1760]: Exit.
Nov 30 23:53:21 test pptpd[1759]: CTRL: Client xxx.xxx.xxx.xxx control connection finished

remember for the first time I can connect to the VPN server, for the second time I can not.

any ideas? my eyes are getting tired.

Fcukinyahoo 12-01-2012 11:26 AM

Here is more information
 
Here is my first Successful connection /var/log/messages
Code:

Dec  1 11:13:22 test pptpd[1238]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Dec  1 11:13:22 test pptpd[1238]: CTRL: Starting call (launching pppd, opening GRE)
Dec  1 11:13:22 test pppd[1239]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Dec  1 11:13:22 test kernel: PPP generic driver version 2.4.2
Dec  1 11:13:22 test pppd[1239]: pppd 2.4.5 started by root, uid 0
Dec  1 11:13:22 test pppd[1239]: Using interface ppp0
Dec  1 11:13:22 test pppd[1239]: Connect: ppp0 <--> /dev/pts/0
Dec  1 11:13:25 test kernel: PPP MPPE Compression module registered
Dec  1 11:13:25 test pppd[1239]: MPPE 128-bit stateless compression enabled
Dec  1 11:13:25 test pppd[1239]: found interface eth0 for proxy arp
Dec  1 11:13:25 test pppd[1239]: local  IP address 192.168.1.20
Dec  1 11:13:25 test pppd[1239]: remote IP address 192.168.1.200

Here is server side /var/log/messages when I disconnect from client
Code:

Dec  1 11:15:40 test pppd[1239]: LCP terminated by peer (MPPE disabled)
Dec  1 11:15:40 test pppd[1239]: Connect time 2.3 minutes.
Dec  1 11:15:40 test pppd[1239]: Sent 1230987 bytes, received 519716 bytes.
Dec  1 11:15:40 test pptpd[1238]: CTRL: EOF or bad error reading ctrl packet length.
Dec  1 11:15:40 test pptpd[1238]: CTRL: couldn't read packet header (exit)
Dec  1 11:15:40 test pptpd[1238]: CTRL: CTRL read failed
Dec  1 11:15:40 test pppd[1239]: Modem hangup
Dec  1 11:15:40 test pppd[1239]: Connection terminated.
Dec  1 11:15:41 test pppd[1239]: Exit.
Dec  1 11:15:41 test pptpd[1238]: CTRL: Client xxx.xxx.xxx.xxx control connection finished

And here is /var/log/messages when I try to connect to the VPN the second time. It won't connect???
Code:

Dec  1 11:18:22 test pptpd[1335]: CTRL: Client xxx.xxx.xxx.xxx control connection started
Dec  1 11:18:22 test pptpd[1335]: CTRL: Starting call (launching pppd, opening GRE)
Dec  1 11:18:22 test pppd[1336]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Dec  1 11:18:22 test pppd[1336]: pppd 2.4.5 started by root, uid 0
Dec  1 11:18:22 test pppd[1336]: Using interface ppp0
Dec  1 11:18:22 test pppd[1336]: Connect: ppp0 <--> /dev/pts/0
Dec  1 11:18:52 test pppd[1336]: LCP: timeout sending Config-Requests
Dec  1 11:18:52 test pppd[1336]: Connection terminated.
Dec  1 11:18:52 test pptpd[1335]: CTRL: EOF or bad error reading ctrl packet length.
Dec  1 11:18:52 test pptpd[1335]: CTRL: couldn't read packet header (exit)
Dec  1 11:18:52 test pptpd[1335]: CTRL: CTRL read failed
Dec  1 11:18:52 test pppd[1336]: Modem hangup
Dec  1 11:18:52 test pppd[1336]: Exit.
Dec  1 11:18:52 test pptpd[1335]: CTRL: Client xxx.xxx.xxx.xxx control connection finished

Any idea???

Fcukinyahoo 12-05-2012 10:44 AM

Followed this documentation,

http://docs.cslabs.clarkson.edu/wiki...TP_on_CentOS_5

and that documentations to setup,

http://blog.secaserver.com/2011/10/i...rver-centos-6/

same result. First connection is good, second connection doesnt happen, after rebootig the server again first connection works. anyone???


All times are GMT -5. The time now is 05:29 AM.