2017-04-10 13:34 GMT+05:00 <saato...@keemail.me>:
> Hello!
> I have a project, where I connect/disconnect numerous times with a single
> client to my OpenVPN server within a short time (e.g. 70
> connect/disconnects within 10 minutes).
>
> Now, if I configure a specific lport in the client configuration (anything
> between 32768 and 60999), I get a lot of errors that the port is already in
> use.
>
as for https://tools.ietf.org/html/rfc6056#page-5
ports "49152 through 65535" are recommended for outgoing ports (unless
specified manually)
it means, any application can take random port from that range for outgoing
connection (it happens due to OS choice)
be careful with Ephemeral ports
>
> "TCP/UDP: Socket bind failed on local address [undef]: Address already in
> use"
>
> I guess this is because, the port hasn't been made available yet, after
> the last OpenVPN process terminated. I terminate the OpenVPN process
> gracefully and use `explicit-exit-notify 3` if that makes a difference.
> However, I don't seem to have this issue when I don't use the `lport` at
> all, and let OpenVPN use the default.
>
> I don't see much of a difference there. Is it the high port number that is
> used by `lport`?
> Does this even relate the OpenVPN or is it more of an issue of the host
> operating system?
>
> I can't use the default `lport`, as I want to be able to start multiple
> OpenVPN instances on the client.
>
> Does anyone have an idea, how I could resolve or at least mitigate this
> issue?
>
> Thanks and kind regards,
> SaAtomic
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users