LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-10-2004, 07:20 AM   #1
dezeque
LQ Newbie
 
Registered: Mar 2004
Location: Switzerland
Distribution: Fedora core2
Posts: 19

Rep: Reputation: 0
Vpn poptop - CTRL: PTY read or GRE write failed (pty,gre)=(5,6)


HI,
still have prob with my VPN

when i type lsmod :
ppp_mppe loaded ok
ip_gre ok

when i type : grep GRE /boot/config-2.4.22-1.2174.nptl
CONFIG_NET_SCH_GRED=m
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y

here no prob i think,

Here is my prob when i try to established connection from a windows 2k client PC :

**********************************
Mar 10 14:18:40 localhost pptpd[5474]: CTRL: Client 192.168.0.3 control connection started
Mar 10 14:18:40 localhost pptpd[5474]: CTRL: Starting call (launching pppd, opening GRE)
Mar 10 14:18:40 localhost pppd[5475]: pppd 2.4.1 started by root, uid 0
Mar 10 14:18:40 localhost pppd[5475]: Using interface ppp0
Mar 10 14:18:40 localhost pppd[5475]: Connect: ppp0 <--> /dev/pts/3
Mar 10 14:18:40 localhost pptpd[5474]: GRE: Discarding duplicate packet
Mar 10 14:18:42 localhost pptpd[5474]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
Mar 10 14:18:42 localhost pppd[5475]: MSCHAP-v2 peer authentication succeeded for user1
Mar 10 14:18:42 localhost pppd[5475]: Cannot determine ethernet address for proxy ARP
Mar 10 14:18:42 localhost pppd[5475]: local IP address 10.10.10.10
Mar 10 14:18:42 localhost pppd[5475]: remote IP address 10.10.10.110
Mar 10 14:18:49 localhost pppd[5475]: LCP terminated by peer (z^O&y^@<M-Mt^@^@^BM-f)
Mar 10 14:18:52 localhost pppd[5475]: Connection terminated.
Mar 10 14:18:52 localhost pppd[5475]: Connect time 0.2 minutes.
Mar 10 14:18:52 localhost pppd[5475]: Sent 128 bytes, received 1472 bytes.
Mar 10 14:18:52 localhost pppd[5475]: Exit.
Mar 10 14:18:52 localhost pptpd[5474]: GRE: read(fd=5,buffer=804d980,len=8196) from PTY failed: status = -1 error = Input/output error
Mar 10 14:18:52 localhost pptpd[5474]: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
Mar 10 14:18:52 localhost pptpd[5474]: CTRL: Client 192.168.0.3 control connection finished

**********************************

Authentification with MSCHAP-v2 is ok !!!!!!!!!!!!

the prob is :
GRE: read(fd=5,buffer=804d980,len=8196) from PTY failed: status = -1 error = Input/output error
LCP termined connection
etc...

What the fuck ?

ip_gre loaded

no firewall prob because i did on all tables iptables -F



REALLY NEED HELP !!!!!!!!


Regards Dezeque
 
Old 05-01-2004, 07:11 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i have same trouble. my os is redhat 8.0

i have installed the following rpms:
kernel-2.4.20-ipsec200_1.3.2_mppe13.8.i686.rpm
kernel-doc-2.4.20-ipsec200_1.3.2_mppe13.8.i386.rpm
kernel-source-2.4.20-ipsec200_1.3.2_mppe13.8.i386.rpm
libsmbpw-1.3-rh8_1.i386.rpm
ppp-2.4.1-rh8_mppe7.i386.rpm
pptpd-1.1.3-rh8_20030409_1.i386.rpm

/var/log/messages:
May 1 14:59:13 rh8-teknik pptpd[1761]: CTRL: Client 192.168.16.48 control connection started
May 1 14:59:13 rh8-teknik pptpd[1761]: CTRL: Starting call (launching pppd, opening GRE)
May 1 14:59:13 rh8-teknik pppd[1762]: pppd 2.4.1 started by root, uid 0
May 1 14:59:13 rh8-teknik pppd[1762]: Using interface ppp0
May 1 14:59:13 rh8-teknik pppd[1762]: Connect: ppp0 <--> /dev/pts/1
May 1 14:59:13 rh8-teknik /etc/hotplug/net.agent: assuming ppp0 is already up
May 1 14:59:43 rh8-teknik pppd[1762]: LCP: timeout sending Config-Requests
May 1 14:59:43 rh8-teknik pppd[1762]: Connection terminated.
May 1 14:59:43 rh8-teknik pppd[1762]: Exit.
May 1 14:59:43 rh8-teknik pptpd[1761]: GRE: read(fd=5,buffer=804d8e0,len=8196) from PTY failed: status = -1 error = Input/output error
May 1 14:59:43 rh8-teknik pptpd[1761]: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
May 1 14:59:43 rh8-teknik pptpd[1761]: CTRL: Client 192.168.16.48 control connection finished
May 1 14:59:43 rh8-teknik /etc/hotplug/net.agent: NET unregister event not supported


actually i can connect without mschap v2 . when i configure 2k client to use chap and without encryption it can connect.
how is your /etc/pptpd.conf and /etc/ppp/options.pptpd ?

if u solve the trouble let me know please.
 
Old 05-02-2004, 04:55 AM   #3
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i solve my trouble. check the config files.
 
Old 05-02-2004, 08:19 AM   #4
dezeque
LQ Newbie
 
Registered: Mar 2004
Location: Switzerland
Distribution: Fedora core2
Posts: 19

Original Poster
Rep: Reputation: 0
you have to install stuff in this order :

pppd
kernel_mppe
the vpn serveur.

and use the pppd version 2.4.2 and not the 2.4.1 !!!

are you sure that you use the right kernel_mppe ? why do u use IPSec `? pptp does not use it !!!
 
Old 05-08-2004, 01:49 AM   #5
leonardox
LQ Newbie
 
Registered: Jul 2003
Location: Guadalajara
Distribution: Slackware
Posts: 23

Rep: Reputation: 15
i have teh same problem with kernel 2.4.25 ppp 2.4.2 an linux-2.4.25-mppe-mppc-0.99.patch.gz , what can I do?
 
Old 05-08-2004, 02:45 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
pptpd is working on my redhat 8.0. i have downloaded rpm files from http://www.spenneberg.com/ then installed.
edited conf files. after reboot i had a vpn server
 
Old 10-12-2004, 08:13 AM   #7
dezeque
LQ Newbie
 
Registered: Mar 2004
Location: Switzerland
Distribution: Fedora core2
Posts: 19

Original Poster
Rep: Reputation: 0
solved

For me it's ok !!! just check your config file, delete many lines then pptpd will take default value et work !!!

dont' miss to use good version and install them in the good order, for me i'd found a rpm for the kernel_mppe !! check the right kernel version !! and dl the good one !!

Linux Rocks !!!
 
Old 09-21-2009, 12:00 PM   #8
Dave Barnett
LQ Newbie
 
Registered: Jun 2007
Location: S.F. Bay Area
Distribution: Debian / RedHat
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by dezeque View Post
HI,
still have prob with my VPN

when i type lsmod :
ppp_mppe loaded ok
ip_gre ok

when i type : grep GRE /boot/config-2.4.22-1.2174.nptl
CONFIG_NET_SCH_GRED=m
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y

here no prob i think,

Here is my prob when i try to established connection from a windows 2k client PC :

**********************************
Mar 10 14:18:40 localhost pptpd[5474]: CTRL: Client 192.168.0.3 control connection started
Mar 10 14:18:40 localhost pptpd[5474]: CTRL: Starting call (launching pppd, opening GRE)
Mar 10 14:18:40 localhost pppd[5475]: pppd 2.4.1 started by root, uid 0
Mar 10 14:18:40 localhost pppd[5475]: Using interface ppp0
Mar 10 14:18:40 localhost pppd[5475]: Connect: ppp0 <--> /dev/pts/3
Mar 10 14:18:40 localhost pptpd[5474]: GRE: Discarding duplicate packet
Mar 10 14:18:42 localhost pptpd[5474]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
Mar 10 14:18:42 localhost pppd[5475]: MSCHAP-v2 peer authentication succeeded for user1
Mar 10 14:18:42 localhost pppd[5475]: Cannot determine ethernet address for proxy ARP
Mar 10 14:18:42 localhost pppd[5475]: local IP address 10.10.10.10
Mar 10 14:18:42 localhost pppd[5475]: remote IP address 10.10.10.110
Mar 10 14:18:49 localhost pppd[5475]: LCP terminated by peer (z^O&y^@<M-Mt^@^@^BM-f)
Mar 10 14:18:52 localhost pppd[5475]: Connection terminated.
Mar 10 14:18:52 localhost pppd[5475]: Connect time 0.2 minutes.
Mar 10 14:18:52 localhost pppd[5475]: Sent 128 bytes, received 1472 bytes.
Mar 10 14:18:52 localhost pppd[5475]: Exit.
Mar 10 14:18:52 localhost pptpd[5474]: GRE: read(fd=5,buffer=804d980,len=8196) from PTY failed: status = -1 error = Input/output error
Mar 10 14:18:52 localhost pptpd[5474]: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
Mar 10 14:18:52 localhost pptpd[5474]: CTRL: Client 192.168.0.3 control connection finished

**********************************

Authentification with MSCHAP-v2 is ok !!!!!!!!!!!!

the prob is :
GRE: read(fd=5,buffer=804d980,len=8196) from PTY failed: status = -1 error = Input/output error
LCP termined connection
etc...

What the fuck ?

ip_gre loaded

no firewall prob because i did on all tables iptables -F



REALLY NEED HELP !!!!!!!!


Regards Dezeque
I found one other thing that can cause this. Make sure both sides of the VPN have the correct time. In our case the PPTP server was off by about 45 minutes and it caused this error to pop up intermittently.

Dave B.
 
Old 12-11-2009, 01:56 PM   #9
elmysnail
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 1
dezeque, dude, try add to /etc/ppp/options following lines:
mru 900
mtu 900

or something like this, that worked for me

Last edited by elmysnail; 12-11-2009 at 02:02 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRE keepalives. How can a SUSE 9.0 Linux box send GRE keepalives? dlef Linux - Networking 1 06-28-2005 12:00 PM
poptop gre or PTY error deus1 Linux - Networking 1 06-07-2005 06:39 AM
gre tunnel problem sixone Linux - Networking 3 05-30-2005 11:57 AM
gre ip tunnels and their security antken Linux - Networking 5 09-22-2003 04:08 PM
gre traceroute patch Spowers Linux - General 1 01-06-2002 11:25 AM


All times are GMT -5. The time now is 09:42 AM.

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