jpetazzo / dockvpn

Recipe to build an OpenVPN image for Docker
Apache License 2.0
834 stars 295 forks source link

How to modify default Ports #29

Open MaraScott opened 8 years ago

MaraScott commented 8 years ago

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

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 ?

jpetazzo commented 8 years ago

You'll need to change:

volodalexey commented 5 years ago

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