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

How can I run a VPN connection on a non-standard port? I have set up a VPN on my router running DD-WRT which I connected to my main router. I have forwarded the port to port 90 and can not connect to the VPN with the Network Manager. If I change the port back to 1723 (the default port) I can connect just fine. Does anybody know how to fix this?

Here are the relevant IP addresses: Router on Internet Router

I want it to work like this: > >

But it will only work like this: > >
share|improve this question

closed as too localized by Luis Alvarado Mar 14 '13 at 17:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It sounds as though you have forwarded the port to port 90 on the DD-WRT, is that correct? Have you checked your iptables configuraton on the DD-WRT to ensure that your packets to that port will be received?

I don't currently know how to get Network Manager to PPTP to a specific port. I am looking into it and I will edit this answer when I find out. You also might try appending the port number to the end of the IP address, like for example.

I can't find any way to induce Network Manager to send to a custom port, unless the above suggestion works.

Looking at /usr/share/doc/pptp-linux/USING and at man pppd I don't see any way to specify a custom port either, unless, again, the method above works.

If it does not work, the best thing I can think of is to add a static route, defining the VPN's address range as the destination and the VPN tunnel exit address and port as the gateway. See ip route help for more information.

share|improve this answer
I think you misunderstanding. I will update my question. Using a : or :: (some apps use this) doesn't connect at all. – JasonCook599 Sep 24 '10 at 19:27
Do you control the host at Have you verified that packets to port 90 are being received and not dropped? – koanhead Sep 24 '10 at 20:44

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