-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accounting Issue #2
Comments
The purpose of using client-connect and disconnect is doing sending radius accounting to the radius server. Are you enable accounting services radius at the freeradius? What the accounting does at free adius? |
I encounter the same error and I cannot find any log about accounting in freeradius. /etc/freeradius/3.0/sites-available/default
/etc/freeradius/3.0/mods-available/sqlcounter
|
dailycounter also leads to same error |
Hi,
I have issue with accounting process. When the server.conf file is configured with:
client-connect "/etc/openvpn/plugin/ovpn-radius acct "
The log file "radius-plugin.log" shows this:
time="2023-08-04T19:06:12Z" level=info msg="accountingRequest: prepare send request to 192.168.1.100:1813 with request type: start"
time="2023-08-04T19:06:12Z" level=info msg="accountingRequest: get user data with Id 192.168.1.50:55606"
time="2023-08-04T19:06:12Z" level=info msg="accountingRequest: update user data ip address to 172.17.1.6 with Id 192.168.1.50:55606"
time="2023-08-04T19:06:12Z" level=info msg="accountingRequest: sent request to 192.168.1.100:1813 with request type: start"
time="2023-08-04T19:06:12Z" level=error msg="accountingRequest: error: exit status 1"
and if I comment out
client-connect "/etc/openvpn/plugin/ovpn-radius acct "
the authentication process will work prefectly.
Here is server.conf configuration:
proto udp
local 192.168.1.12
auth-user-pass-verify "/etc/openvpn/plugin/ovpn-radius auth" via-file
client-connect "/etc/openvpn/plugin/ovpn-radius acct "
client-disconnect "/etc/openvpn/plugin/ovpn-radius stop "
script-security 3
ca ca.crt
cert server.crt
key server.key
dh none
server 172.17.1.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
duplicate-cn
keepalive 10 120
tls-crypt ta.key
cipher AES-256-GCM
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
syslog openvpn
;management 127.0.0.1 3799
verb 4
explicit-exit-notify 1
and this is how the config.json looks like:
{
"LogFile": "/var/log/openvpn/radius-plugin.log",
"ServerInfo":
{
"Identifier": "openvpn",
"IpAddress": "192.168.1.12",
"PortType": "5",
"ServiceType": "5"
},
"Radius":
{
"Authentication":
{
"Server": "192.168.1.100:1812",
"Secret": "123456"
},
"Accounting":
{
"Server": "192.168.1.100:1813",
"Secret": "123456"
}
}
}
And also I used
tcpdum udp port 1813
in purpose of monitor accounting packets at the radius server but didn't receive any packet.OS: Ubuntu 20.04.2
Openvpn 2.5.5
RadiusServer: Freeradius with Radiuskdesk GUI
Any idea what I did wong?
Regards
The text was updated successfully, but these errors were encountered: