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

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.

  • I think you misunderstanding. I will update my question. Using a : or :: (some apps use this) doesn't connect at all.
    – user415
    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