I have a pptp server on ubuntu behind a router. From inside the network I can connect to pptp server, but from the internet I can not.
1723, 1792 port are forwarded in router.
Here is a full log:
In PPTP FAQ:
Q. GRE: read(fd=5,buffer=804d720,len=8196) from PTY failed: status = -1 error = Input/output error
A. The log will display something like this:
Jun 22 21:48:35 linuxbox pptpd: GRE: read(fd=5,buffer=804d720,len=8196) from PTY failed: status = -1 error = Input/output error Jun 22 21:48:35 linuxbox pptpd: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
An EIO on read from the PTY is caused when pppd has failed and closed the PTY. pppd failed for some reason. pptpd does not report why pppd failed. pptpd not reporting why pppd failed is a bug, but it is not yet fixed. You should look at why pppd failed, which is most likely your fault, not a bug. pppd fails when it does not understand the options you entered, or when it could not negotiate with the peer. Running pppd manually against your options.pptpd file would find bad options. Adding "debug dump" to options.pptpd file will capture cause of negotiation failure.