To keep monitoring with a 20 second intervall. Maybe there's a way to adjust the intervalls in some settings BUT, I only need to monitor the vpn connections sometimes. I hink this is better than monitoring the /etc/openvpn/openvpn-status.log since this is really slow to update. I made a litte script that can either do a one time check or be set to keep monitoring with specified intervalls. To see active connections, go to the public IP of your VPN server make sure to configure proper firewall for port 80, whitelist only trusted inbound IPs Start the web server that will show active connections, gunicorn openvpn-monitor -b 0.0.0.0:80 -name openvpn-monitor -daemon Install required packages pip install openvpn-monitor gunicornĪdd a Monitor config file vi /opt/openvpn-monitor/nf Restart openvpn server systemctl restart an OpenVPN Monitor Python package - this will run via a Gunicorn web server and show active connections, mkdir /opt/openvpn-monitorĬreate a virtual env (not required but good practice with py packages) cd /opt/openvpn-monitor I manage our companys OpenVPN servers and the way I see active connections is like this,Īdd to /etc/openvpn/nf management 127.0.0.1 5555
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |