1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problems with PPTP Server

Discussion in 'Tomato Firmware' started by eljesus476, May 24, 2013.

  1. eljesus476

    eljesus476 Reformed Router Member

    Hi, first thank you for the help ahead of time. I have a E4200, and I can not run the PPTP Server. If I'm home and I start the client with the WI-FI works but from the outside I can not this is the log that appears:

    May 24 6:24:01 E4200 daemon.info pptpd [982]: CTRL: Client connection started 176.83.55.118 Control
    May 24 6:24:01 E4200 daemon.info pptpd [982]: CTRL: Starting call (launching pppd, opening GRE)
    May 24 6:24:01 E4200 daemon.notice pppd [983]: pppd 2.4.5 started by root, uid 0
    May 24 6:24:01 daemon.debug E4200 pppd [983]: using channel 2
    May 24 6:24:01 E4200 daemon.info pppd [983]: Using interface ppp4
    May 24 6:24:01 E4200 daemon.notice pppd [983]: Connect: ppp4 <-> / dev/pts/0
    May 24 6:24:01 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:04 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:07 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:10 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:13 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:16 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:19 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:22 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:25 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:28 daemon.debug E4200 pppd [983]: sent [LCP ConfReq id = 0x1 <mru chap 1450> MS-v2> <asyncmap <magic 0x0> 0x9a677ccc> <auth <pcomp> <accomp>]
    May 24 6:24:31 daemon.warn E4200 pppd [983]: LCP: timeout sending Config-Requests
    May 24 6:24:31 E4200 daemon.notice pppd [983]: Connection terminated.
    May 24 6:24:32 E4200 daemon.notice pppd [983]: Modem hangup
    May 24 6:24:32 E4200 daemon.info pppd [983]: Exit.
    May 24 6:24:32 daemon.err E4200 pptpd [982]: GRE: read (fd = 6, buffer = 4218bc, len = 8196) from PTY failed: status = -1 error = Input / output error usually we Caused by unexpected termination of pppd, check option syntax and pppd logs
    May 24 6:24:32 daemon.err E4200 pptpd [982]: CTRL: PTY read or GRE write failed (pty, gre) = (6,7)
    May 24 6:24:32 daemon.debug E4200 pptpd [982]: CTRL: Reaping child PPP [983]
    May 24 6:24:32 E4200 daemon.info pptpd [982]: CTRL: Client 176.83.55.118 finished Control connection
     
  2. M0g13r

    M0g13r LI Guru Member

    hm
    i get the feeling there is something wrong with pppd and lcp echo :\

    does iptables block gre 47 ?
     
  3. eljesus476

    eljesus476 Reformed Router Member

    this is the configuration of iptables
    iptables -A INPUT -i ppp+ -j ACCEPT
    iptables -A OUTPUT -o ppp+ -j ACCEPT

    iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
    iptables -A INPUT -p 47 -j ACCEPT
    iptables -A OUTPUT -p 47 -j ACCEPT

    iptables -F FORWARD
    iptables -A FORWARD -j ACCEPT

    iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
    iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE
     

Share This Page