Skip to content

Script for updating OPNsense OpenVPN clients with the current recommended servers from NordVPN. Also includes config file for enabling cron jobs.

Notifications You must be signed in to change notification settings

Xanderr/opnsense-nordvpn-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Setup

  1. Copy the .py and .conf file to somewhere on your system, like your home folder
  2. Note the absolute path of the .py file (needed for the cron step)

Main configuration

  1. Open the python file and look for the "vpn_list" variable
  2. Change the "target" fields to your OpenVPN client description values
  3. Modify the other fields to your requirements
  4. Save the file

Cron integration

  1. Open actions_nordvpn.conf and update the "parameters" field with the absolute path of the .py file from step 2
  2. Copy actions_nordvpn.conf to the /usr/local/opnsense/service/conf/actions.d folder
  3. Run "sudo service configd restart" to apply
  4. Run "sudo configctl nordvpn start" to check if it works correctly
    • It should return "OK", if not please make sure the paths in the .conf file are correct
    • If it still doesn't work, you can try to manually execute the script to see what is wrong
    • Manual execution example: sudo /usr/local/bin/python3 /home/admin/vpn/update_vpn_clients.py
  5. If you want more verbose output, you can change the "type" value in the .conf file to "script_output"
  6. If everything is okay, you can make a cron entry via the GUI!

About

Script for updating OPNsense OpenVPN clients with the current recommended servers from NordVPN. Also includes config file for enabling cron jobs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages