ValdikSS / openvpn-radiusplugin

Radiusplugin with various patches and fixes
GNU General Public License v2.0
44 stars 42 forks source link

Does this plugin also support disconnects (COA) ? #20

Open tegant opened 3 years ago

tegant commented 3 years ago

Hello,

This is an amazing plugin, I hope it is still maintained.

If this plugin also support disconnects via COA (Change-of-Authorization)?

It seems that there is no response to the disconnect requests from Freeradius until it times out.

(8) Sent Disconnect-Request Id 244 from 0.0.0.0:58823 to 127.0.0.1:3799 length 28
(8)   User-Name = "houmie"
(8) Sent Accounting-Response Id 105 from 127.0.0.1:1813 to 127.0.0.1:50177 length 0
(8) Finished request
(8) Cleaning up request packet ID 105 with timestamp +69
Waking up in 0.4 seconds.
(6) Sending duplicate CoA request to home server 127.0.0.1 port 3799 - ID: 79
Waking up in 1.4 seconds.
(7) Sending duplicate CoA request to home server 127.0.0.1 port 3799 - ID: 204
Waking up in 0.3 seconds.
(8) Sending duplicate CoA request to home server 127.0.0.1 port 3799 - ID: 244
Waking up in 3.3 seconds.
(5) ERROR: Failing request - originate-coa ID 211, due to lack of any response from coa server 127.0.0.1 port 3799 within 30 seconds

Unless there is a need for a COA setting in the configuration?

NAS-Identifier=OpenVpn
Service-Type=5
Framed-Protocol=1
NAS-Port-Type=5
NAS-IP-Address=127.0.0.1
OpenVPNConfig=/etc/openvpn/server.conf
subnet=255.255.255.0
overwriteccfiles=true
server
{
         authport=1812
         name=127.0.0.1
         retry=1
         wait=1
         sharedsecret=${CLIENT_SECRET}
}

Is there any documentation for the settings?

Thanks