Results 1 to 3 of 3
  1. #1

    PPTP VPN issue - on Xen VPS

    Hi,

    Just wondering if anyone has come across this problem before.

    My environment:
    Xen VPS
    128MB RAM
    CentOS 4.5

    I have install PPTP, and controlling via webmin. The server starts up fine, I have added a user account.

    Here is the messages log after starting up PPTP:
    Code:
    Mar  5 15:00:56 uk2 pptpd[3562]: MGR: connections limit (100) reached, extra IP addresses ignored
    Mar  5 15:00:56 uk2 pptpd[3563]: MGR: Manager process started
    Mar  5 15:00:56 uk2 pptpd[3563]: MGR: Maximum of 100 connections available
    Here is the messages log when trying to connect from a MS WINDOWS XP client:
    Code:
    Mar  5 15:04:59 uk2 pptpd[3567]: CTRL: Client MY.PUBLIC.IP control connection started
    Mar  5 15:04:59 uk2 pptpd[3567]: CTRL: Starting call (launching pppd, opening GRE)
    Mar  5 15:04:59 uk2 pppd[3568]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
    Mar  5 15:04:59 uk2 pppd[3568]: pppd 2.4.3 started by root, uid 0
    Mar  5 15:04:59 uk2 pppd[3568]: Using interface ppp0
    Mar  5 15:04:59 uk2 pppd[3568]: Connect: ppp0 <--> /dev/pts/3
    Mar  5 15:05:29 uk2 pppd[3568]: LCP: timeout sending Config-Requests 
    Mar  5 15:05:29 uk2 pppd[3568]: Connection terminated.
    Mar  5 15:05:29 uk2 pppd[3568]: Using interface ppp0
    Mar  5 15:05:29 uk2 pppd[3568]: Connect: ppp0 <--> /dev/pts/3
    Mar  5 15:05:29 uk2 pppd[3568]: tcflush failed: Bad file descriptor
    Mar  5 15:05:29 uk2 pppd[3568]: tcsetattr: Invalid argument (line 1016)
    Mar  5 15:05:29 uk2 pppd[3568]: Exit.
    Mar  5 15:05:29 uk2 pptpd[3567]: GRE: read(fd=6,buffer=506c00,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
    Mar  5 15:05:29 uk2 pptpd[3567]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
    Mar  5 15:05:29 uk2 pptpd[3567]: CTRL: Client MY.PUBLIC.IP control connection finished
    Here is lsmod:
    Code:
    # lsmod
    Module                  Size  Used by
    ppp_async              45377  0
    crc_ccitt              35265  1 ppp_async
    iptable_nat            40773  0
    ip_nat                 53101  1 iptable_nat
    ip_conntrack           91365  2 iptable_nat,ip_nat
    nfnetlink              40457  2 ip_nat,ip_conntrack
    iptable_mangle         36033  0
    arc4                   35009  0
    ppp_mppe               39880  0
    ppp_generic            62817  2 ppp_async,ppp_mppe
    slhc                   39873  1 ppp_generic
    loop                   48849  0
    ipt_LOG                39745  4
    iptable_filter         36161  1
    ip_tables              55329  3 iptable_nat,iptable_mangle,iptable_filter
    x_tables               50249  3 iptable_nat,ipt_LOG,ip_tables
    ipv6                  410145  34
    dm_mod                 93969  0
    xennet                 60233  0 [permanent]
    usb_storage           116256  0
    ahci                   52805  0
    libata                139113  1 ahci
    sd_mod                 54081  0
    scsi_mod              184057  4 usb_storage,ahci,libata,sd_mod
    ext3                  166353  1
    jbd                    93617  1 ext3
    ehci_hcd               65357  0
    ohci_hcd               54621  0
    uhci_hcd               57561  0
    xenblk                 49889  2
    I have also uploaded the pptpd.conf and options.pptpd to here for you to view.
    http://100mbit.co.uk/wht/

    Also in the above link is an image of the MS Windows XP client advanced configs.

    I bet im just missing something out....?

    Thank you in advanced
    Stuart Munro

  2. #2
    The problem is happening when pptpd attempts to use pppd for its services. You will need the debug information to investigate this more.

    Take a look here to find out how to enable debugging...
    http://pptpclient.sourceforge.net/ho...is.phtml#debug


    The break down in your connection is covered here....
    http://pptpclient.sourceforge.net/ho...ml#lcp_timeout


    Have fun... I spent a while tweaking my PPTP server before it all worked. Nice thing is its been up for more than 6 months with no problems with users always connected.
    Enterprise IT Professional, Former Web Hosting Tech.

  3. #3
    Hi greg14unix,

    Thank you for the reply.

    I have managed to get it to work, mostly! I can connect to server and ping the server, however not google..?

    I have done the ip_forward... = 1 bit, and I think I have found the problem.

    When I connect from my windows machine, the gateway for the VPN is the same IP assigned to the client, in my case 192.168.2.100, instead of the servers IP of 192.168.2.1.

    Is there a way to push the default gateway as 192.168.2.1 to every client like OpenVPN, or how do I change the gateway on the client, as there doesn't seem to be able to do it like a normal NIC.

    Thank you
    Stuart Munro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •