Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 12.04 VPS to host a PPTP server for my own personal use. I have set it up using a script I have written myself which is drawn from various different tutorials I have come across online (http://www.markmearns.com/sandbox/pptp.sh).

The service installs fine and I can connect to it using any Windows machine using built-in VPN clients, via my iPhone and Android tablet. The connection works fine and all traffic is routed over the VPN. It works quickly and never drops out.

However, I have invested in a Mikrotik routerboard as I want a wifi network that just routes over the VPN. The router connects to the PPTP server, but after about 1m20s it disconnects and reconnects. The VPN server also does not exchange any data with the router.

The router and its settings are working fine as I can connect to commercial PPTP VPN services (like hidemyass.com) and the connection works fine and never drops out. This leads to me to believe that the router is not at fault, but my PPTP server is the problem.

Would be grateful if anyone could shed any light on this for me. The configuration is obviously that as seen in the script I have written.

Mark.

share|improve this question
add comment

2 Answers

Thanks for your suggestion - turns out it was more simple than I thought - in /etc/pptpd.conf I have specified the server IP to be the server's external IP whereas I should have made it a local IP, part of the same range as the client IPs. For some reason Windows clients will accept this, but others are more sensitive.

Mark.

share|improve this answer
    
Please use the same user ID to ask and answer questions. Use the contact Us link below to ask the moderators to merge your two IDs. –  user68186 Mar 22 '13 at 16:03
add comment

Sounds to me like pptpd can't establish a connection and retries endless. Please check your system log. This can be done in in a terminal in real time via this command:

    tail -f /var/log/syslog

(Issue that command in terminal, then start pptpd in another terminal. Abort listing in first terminal with CRTL-C.)

PPTP uses GRE protocol. You must open your firewall for outbound connections via protocol 47 (GRE).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.