Force source port (client)- STUN

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
pparent
OpenVpn Newbie
Posts: 5
Joined: Fri Apr 13, 2018 10:57 am

Force source port (client)- STUN

Post by pparent » Thu Apr 26, 2018 10:32 am

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Force source port (client)- STUN

Post by TinCanTech » Thu Apr 26, 2018 12:07 pm

See --lport in the manual.

pparent
OpenVpn Newbie
Posts: 5
Joined: Fri Apr 13, 2018 10:57 am

Re: Force source port (client)- STUN

Post by pparent » Fri Apr 27, 2018 9:51 am

Ok Thanks a lot!

Sorry for once again asking for a trivial question.

Post Reply