Vpn poptop - CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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
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 ?
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
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 !!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.