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'm trying to configure one of my machines to serve as a VPN and through it connect using Windows 7.

I installed pptp followed all the instructions but it keeps giving me error 619. I verified the ports and I allowed port 1723 in both tcp and udp so I'm quite unsure what's left to do

Is there a guide that has completely worked for you?

share|improve this question
For official guides try these Open Vpn,open Vpn 2, Vpn Client , open Vpn Server – atenz Jul 10 '12 at 17:47
Where is the "Ubuntu" part in your question? – Lekensteyn Jul 10 '12 at 19:23
@Lekensteyn what do you want to know? Ubuntu version? 12.04 – allenskd Jul 10 '12 at 20:22
Looking at the title, I'd think that this question belongs to because it asks to get something done in Windows 7. However, when reading the question body, it becomes clear that you maybe want to configure an Ubuntu as VPN server. Is PPTP a requirement or can it be OpenVPN too? – Lekensteyn Jul 10 '12 at 21:08
@Lekensteyn Hmm perhaps but I don't think crossing questions will do good when there are more linux users over here that could have struggled with the same problem before. PPTP is working like a charm, I found my problem which is iptables, need to find the correct rules. – allenskd Jul 11 '12 at 0:09

This was the guide that I was going to use for my client. They aren't being responsive however so I'm not sure if it will work for you:

Windows 7 PPTP setup

If you're having issues with internet particularly you need to make sure that HTTP is allowed through your PPTP as the default seems to be to deny access.

share|improve this answer
That worked, though there's something wrong, followed it all but it still says "No internet access". At least I managed to get it recognized. – allenskd Jul 10 '12 at 20:23

After following chrisjleaf's answer, all I needed was the exact iptables rules to apply

So far this has worked for me

iptables -A INPUT -i ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A OUTPUT -o ppp0 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -d <VPN-LOCALIP> -p tcp --dport 1723 -j DNAT --to <VPN-REMOTEIP>
iptables -A FORWARD -i eth1 -d <VPN-REMOTEIP> -m state --state NEW -p tcp --dport 1723 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -d <VPN-LOCALIP> -p 47 -j DNAT --to <VPN-REMOTEIP>
iptables -A FORWARD -i eth1 -d <VPN-REMOTEIP> -p 47 -j ACCEPT

Remember to replace VPN-REMOTEIP and VPN-LOCALIP

then iptables-save

share|improve this answer
iptables-save is not necessary to apply these rules. iptables-save stores the rule in a file which can be restored later with iptables-restore. – Lekensteyn Jul 11 '12 at 9:23

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.