Page 1 of 1

specifying source port for connections?

Posted: Fri Nov 19, 2010 11:37 pm
by solinym
Hey, I noticed that when I specify a port for OpenVPN in the config file, it seems to select that port on the server side, but not on the client side. The client side seems to not bind to a specific port, so it gets something in the anonymous range.

It would be nice if I could pin openvpn to a specific port on the client side, if I wanted. This would enable me to handle it specially in certain cases (e.g. via a firewall), such as giving it a higher QOS rating.

Re: specifying source port for connections?

Posted: Fri Nov 19, 2010 11:53 pm
by krzee
you are probably using --nobind on your client
remove that, and see --lport in the man page http://openvpn.net/man-beta.html