LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2012, 10:55 PM   #1
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Rep: Reputation: Disabled
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.

Last edited by Fcukinyahoo; 12-03-2012 at 10:01 AM.
 
Old 12-01-2012, 10:26 AM   #2
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Original Poster
Rep: Reputation: Disabled
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???

Last edited by Fcukinyahoo; 12-03-2012 at 10:01 AM.
 
Old 12-05-2012, 09:44 AM   #3
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Original Poster
Rep: Reputation: Disabled
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???
 
  


Reply

Tags
centos, ppp, pptp, pptpd, vpn



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pptpd VPN on OpenVZ Auzern Linux - Virtualization and Cloud 2 03-22-2012 04:55 AM
VPN pptpd connected vpn server only access need help please u4david Linux - Networking 1 10-17-2008 03:54 PM
linux ppp client fails to connect to linux pptpd serve, works with windows vpn server wastingtime Linux - Server 3 09-20-2008 08:13 PM
Help with vpn pptpd andybrr Red Hat 2 10-26-2006 04:07 PM
VPN with pptpd m1111 Linux - Networking 0 02-07-2006 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration