Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Arne Schwabe
>> Does lport 0 work? >> > Yes. I use it (see my previous mail). But it is not documented in > openVPN, and the use of a port value of 0 in bind() hardly. In the > source the --lport value is sent to bind() directly, so it happens to > work. It would be great if --lport 0 were mentioned in the man

Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Mickael Chazaux
2014-02-09 16:34 GMT+01:00 Arne Schwabe : > Am 09.02.14 16:19, schrieb Gert Doering: >> Hi, >> >> On Sun, Feb 09, 2014 at 02:41:58PM +0100, Mickael Chazaux wrote: >>> Although it is not easy to find on the Internet, you can bind a client >>> socket to a specific IP adress, while setting the port as

Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Arne Schwabe
Am 09.02.14 16:19, schrieb Gert Doering: > Hi, > > On Sun, Feb 09, 2014 at 02:41:58PM +0100, Mickael Chazaux wrote: >> Although it is not easy to find on the Internet, you can bind a client >> socket to a specific IP adress, while setting the port as 0, meaning >> "choose for me". > Ah, good. So

Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Gert Doering
Hi, On Sun, Feb 09, 2014 at 02:41:58PM +0100, Mickael Chazaux wrote: > Although it is not easy to find on the Internet, you can bind a client > socket to a specific IP adress, while setting the port as 0, meaning > "choose for me". Ah, good. So there *is* a "I do not want a specific port" setti

Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Mickael Chazaux
2014-02-09 12:50 GMT+01:00 Gert Doering : > Hi, > > On Sun, Feb 09, 2014 at 02:10:56AM +, Dash Four wrote: >> Currently, openvpn only accepts "bind" if both "lport" and "local" >> options are specified. Why? >> >> Why can't I specify "local" to instruct openvpn to bind to a specific IP >> addre

Re: [Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Gert Doering
Hi, On Sun, Feb 09, 2014 at 02:10:56AM +, Dash Four wrote: > Currently, openvpn only accepts "bind" if both "lport" and "local" > options are specified. Why? > > Why can't I specify "local" to instruct openvpn to bind to a specific IP > address or interface and leave it to decide a (random)

[Openvpn-devel] --local, --lport and --bind

2014-02-09 Thread Dash Four
Currently, openvpn only accepts "bind" if both "lport" and "local" options are specified. Why? Why can't I specify "local" to instruct openvpn to bind to a specific IP address or interface and leave it to decide a (random) port it binds to in the same way in which the "nobind" option currently