rakasatria / ovpn-radius Goto Github PK
View Code? Open in Web Editor NEWOpenVPN Radius Plugin | Go-based OpenVPN with Radius Authentication and Accounting
License: GNU General Public License v2.0
OpenVPN Radius Plugin | Go-based OpenVPN with Radius Authentication and Accounting
License: GNU General Public License v2.0
Hi,
is it possible to include installation for bsd? I would like to install on a pfsense OpenVPN Server
Regards
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.