I've ran into this issue with 2.5 clients. Adding 'explicit-exit-notify' to
the client's config resolved it for me.


–explicit-exit-notify [n]In UDP client mode or point-to-point mode, send
server/peer an exit notification if tunnel is restarted or OpenVPN process
is exited. In client mode, on exit/restart, this option will tell the
server to immediately close its client instance object rather than waiting
for a timeout. The n parameter (default=1) controls the maximum number of
attempts that the client will try to resend the exit notification
message.In UDP server mode, send RESTART control channel command to
connected clients. The n parameter (default=1) controls client behavior.
With n = 1 client will attempt to reconnect to the same server, with n = 2
client will advance to the next server.

On Thu, Apr 8, 2021 at 8:55 AM Gert Doering <g...@greenie.muc.de> wrote:

> Hi,
>
> On Thu, Apr 08, 2021 at 05:27:32PM +0200, Jordan Borgner wrote:
> > On 4/8/21 4:37 PM, Gert Doering wrote:
> >
> > > Use "nobind" in the client config.
> >
> > No effect. I'll probably just restart the server in the evening.
>
> I saw in your logs that the client was binding to 1194 - which triggers
> bugs on the server on reconnect ("a new session coming from the same
> source ip + port").
>
> If the client selects a new port for every connection, it should do
> exactly what you want: a new session will kick out the previous session.
>
> If not: log files with --verb 3 or 4 on both client and server are needed.
>
> (Maybe it's a NAT router in between that is messing up your connection)
>
> gert
>
> --
> "If was one thing all people took for granted, was conviction that if you
>  feed honest figures into a computer, honest figures come out. Never
> doubted
>  it myself till I met a computer with a sense of humor."
>                              Robert A. Heinlein, The Moon is a Harsh
> Mistress
>
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to