Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 (

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 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.


share|improve this question

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

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.


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

Your Answer


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.