LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-04-2011, 12:07 AM   #1
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 208

Rep: Reputation: 15
pptp disconnected after few seconds


Hi All

I have a problem in my VPN i am using pptp
I installed on CENTOS 5.5

here is my config of LAN

eth1: ISP ADDPRESS
eth0: Local IP Address

when i try to connect using my MAC OSX to ISP ADDRESS of my VPN
i can able to connect but after few seconds im disconnected

no idea why i encountered, is there any way that i can see whats going on or a logs
or anyone can experience on this


Your help is highly appreciated

Thanks
 
Old 06-01-2011, 04:04 PM   #2
user7
LQ Newbie
 
Registered: Nov 2010
Location: Canada
Distribution: anything with a linux or bsd kernel
Posts: 7

Rep: Reputation: 3
Can you post your /etc/pptp.conf?
There should be:

Quote:
localip 10.0.1.1
remoteip 10.0.1.234-238
Where localip is your default gateway and remote IP is the range of IP's the PPTP server will give out to clients.

also do a: tail -f /var/log/messages (unless you have specified a log file elsewhere)
and watch for the connection, should give you some insight as to why it's failing.
 
Old 06-01-2011, 07:18 PM   #3
cheesewizz
Member
 
Registered: Aug 2004
Location: Philippines
Distribution: Centos
Posts: 208

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by user7 View Post
Can you post your /etc/pptp.conf?
There should be:



Where localip is your default gateway and remote IP is the range of IP's the PPTP server will give out to clients.

also do a: tail -f /var/log/messages (unless you have specified a log file elsewhere)
and watch for the connection, should give you some insight as to why it's failing.
Hi,

Thanks for your reply

I tried again while a go but still im disconnected after few seconds

here is my pptpd.conf

# (Recommended)
#localip 119.92.56.75
#remoteip 10.10.1.2-254,192.168.100.1-254
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
localip 119.92.56.75
remoteip 10.10.1.2-254



here is my log

Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: Modem hangup
Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: Connect time 0.2 minutes.
Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: Sent 10636 bytes, received 9671 bytes.
Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: MPPE disabled
Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: Connection terminated.
Jun 2 08:12:07 tailinsubic-chatserver pppd[28179]: Exit.
Jun 2 08:12:07 tailinsubic-chatserver pptpd[28178]: CTRL: Client 180.191.90.74 control connection finished
Jun 2 08:12:14 tailinsubic-chatserver pptpd[28222]: CTRL: Client 180.191.90.74 control connection started
Jun 2 08:12:15 tailinsubic-chatserver pptpd[28222]: CTRL: Starting call (launching pppd, opening GRE)
Jun 2 08:12:15 tailinsubic-chatserver pppd[28223]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jun 2 08:12:15 tailinsubic-chatserver pppd[28223]: pppd 2.4.4 started by root, uid 0
Jun 2 08:12:15 tailinsubic-chatserver pppd[28223]: Using interface ppp0
Jun 2 08:12:15 tailinsubic-chatserver pppd[28223]: Connect: ppp0 <--> /dev/pts/1
Jun 2 08:12:19 tailinsubic-chatserver pppd[28223]: MPPE 128-bit stateless compression enabled
Jun 2 08:12:20 tailinsubic-chatserver pppd[28223]: found interface eth0 for proxy arp
Jun 2 08:12:20 tailinsubic-chatserver pppd[28223]: local IP address 119.92.56.75
Jun 2 08:12:20 tailinsubic-chatserver pppd[28223]: remote IP address 192.168.50.108
Jun 2 08:12:35 tailinsubic-chatserver pptpd[28222]: GRE: read(fd=7,buffer=80515e0,len=8260) from network failed: status = -1 error = Message too long
Jun 2 08:12:35 tailinsubic-chatserver pptpd[28222]: CTRL: GRE read or PTY write failed (gre,pty)=(7,6)
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: Modem hangup
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: Connect time 0.3 minutes.
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: Sent 22089 bytes, received 10412 bytes.
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: MPPE disabled
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: Connection terminated.
Jun 2 08:12:35 tailinsubic-chatserver pppd[28223]: Exit.
Jun 2 08:12:35 tailinsubic-chatserver pptpd[28222]: CTRL: Client 180.191.90.74 control connection finished


thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert total no of seconds in the format hour minutes and seconds suchi_s Programming 15 03-15-2011 11:34 AM
[SOLVED] Experiencing freezing up to 5 seconds every 10 seconds, could these be the problem? Switch7 Slackware 10 11-16-2009 04:36 PM
Linux PPTP client fails to connect to Microsoft ISA PPTP server dCriminal Linux - Networking 1 10-27-2009 12:33 PM
PPTP server sending the weird PPTP header data in 'Out-going-call-reply' varlu Linux - Networking 0 10-14-2009 06:53 AM
hdparm power save, 15 seconds of spin, 5 seconds of rest... Romanus81 Linux - Laptop and Netbook 1 01-01-2009 05:24 PM


All times are GMT -5. The time now is 05:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration