Page 1 of 1

Force source port (client)- STUN

Posted: Thu Apr 26, 2018 10:32 am
by pparent
Hi,

In order to establish a connection via STUN, we need to be able to ask openvpn to use a specific source port on client mode. For example we need to be able to ask to connect in UDP to 1.1.1.1:35000 with source port 36000.

By default openvpn uses random source ports. Is it possible to have control over source port used by openvpn?

Thank's a lot in advance!
Pierre.

Re: Force source port (client)- STUN

Posted: Thu Apr 26, 2018 12:07 pm
by TinCanTech
See --lport in the manual.

Re: Force source port (client)- STUN

Posted: Fri Apr 27, 2018 9:51 am
by pparent
Ok Thanks a lot!

Sorry for once again asking for a trivial question.