Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-30-2012, 11:55 PM
|
#1
|
Member
Registered: Sep 2011
Posts: 44
Rep: 
|
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 11:01 AM.
|
|
|
12-01-2012, 11:26 AM
|
#2
|
Member
Registered: Sep 2011
Posts: 44
Original Poster
Rep: 
|
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 11:01 AM.
|
|
|
All times are GMT -5. The time now is 02:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|