Giter Club home page Giter Club logo

ovpn-radius's People

Contributors

rakasatria avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

ovpn-radius's Issues

BSD Port

Hi,

is it possible to include installation for bsd? I would like to install on a pfsense OpenVPN Server

Regards

Accounting Issue

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.