Hi.

 OpenVPN allows some configuration directives to be placed inside
 <connection>..</connection> blocks. In particular, "lport" directive
 should bind source port of outgoing UDP packets. This option works fine
 in versions up to 2.6.15, and is ignored in all 2.7.0(-rc*) I tried.
 Configuration example:

 <connection>
   remote some.openvpn.srv 1234 udp
   lport 54321
 </connection>

 It should result in src_port=54321 in UDP packets. But in 2.7.0 it
 results in global lport configuration value (defaults to 1194).

 PS. I know that using the same lport over repeated connections is bad.
 My configuration have multiple <connection> blocks with different lport's,
 and I understand what I'm doing.

 PSS. Probably some other options are ignored inside <connection> blocks,
 which are mentioned in OpenVPN manual:

|    The  following  OpenVPN  options  may  be  used inside of a <connection>
|    block:
|
|    bind,    connect-retry,    connect-retry-max,    connect-timeout,    ex‐
|    plicit-exit-notify,   float,  fragment,  http-proxy,  http-proxy-option,
|    key-direction, link-mtu, local, lport, mssfix, mtu-disc,  nobind,  port,
|    proto,  remote,  rport,  socks-proxy, tls-auth, tls-crypt, tls-crypt-v2,
|    tun-mtu and, tun-mtu-extra.
-- 
 Eugene Berdnikov


_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to