dockvpn icon indicating copy to clipboard operation
dockvpn copied to clipboard

How to modify default Ports

Open MaraScott opened this issue 8 years ago • 2 comments

Hi, I want to use the dockvpn behind a proxy. I try to assign

  • 110 to 8080
  • 112 to 443
  • 111 to 1194

But this is not working, either I assign port through docker container or I modify the files 'run' and serverconfig'

How can I do it ?

MaraScott avatar Jun 07 '16 09:06 MaraScott

You'll need to change:

  • the docker run parameters (change the left-hand side of the port map)
  • the client configuration file

jpetazzo avatar Jun 28 '16 01:06 jpetazzo

Run with different port:

CID=$(docker run -d --privileged -p 9999:1194/udp -p 8888:443/tcp jpetazzo/dockvpn)

When you downloaded the config file, open it in text editor and change:

<connection>
remote 255.255.255.255 9999 udp
</connection>

<connection>
remote 255.255.255.255 8888 tcp-client
</connection>

Where 255.255.255.255 should be your server IP. In this example I used 9999 for UDP and 8888 for TCP

volodalexey avatar Sep 13 '19 16:09 volodalexey