OpenVPN客户端在UDP模式下的explicit-exit-notify

在搭建openVPN With Radius的时候 遇到了一个问题 客户端点击reconnect或者disconnect再connect以后 总是不能连上 看OpenVPN的Status log和radius的online User 用户会一直在线 ,查看openVPN的log,发现直到keepalive的时间到,ping超时的时候 OpenVPN才会认为你下线了。
这样的话 在Simultaneous-Use := 1的情况下 用户就没法链接上。
经过询@yegle 指出是客户端的explicit-exit-notify未设置 查看man手册 找到如下解释

--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 retries that the client will attempt to resend the exit notification message.

UDP不像TCP有三次握手状态 断了就是断了,所以要让客户端发送断线通知才行

Author Info :
  • From:OpenVPN客户端在UDP模式下的explicit-exit-notify
  • URL:https://blog.ihipop.com/2011/05/2406.html
  • Please Reserve This Link,Thanks!
  • 《OpenVPN客户端在UDP模式下的explicit-exit-notify》上有3条评论

    1. 你好!

      其实 我在一个客户端上 设置了explicit-exit-notify之后也没有改善这个情况(这是一个服务器的情况)

      另外 没有设置这个explicit-exit-notify 客户端断线- - -不会出现这种情况(又一个服务器的情况)

      两个服务器不同的症状 我都搞蒙了!!!

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用*标注