Add plugins to OpenVPN

Started by liver007, April 17, 2018, 03:40:04 PM

Previous topic - Next topic
April 17, 2018, 03:40:04 PM Last Edit: August 29, 2019, 07:01:28 AM by fabian
Hi there, My name is Gozzi
I'm trying to add a Duo Security plugin (https://duo.com/docs/openvpn) to OpenVPN under OPNsense, but can't figure out how to load. It doesn't look like OPNsense uses a standard OpenVPN server.conf config file so I'm not sure where to load the plugin. Does OPNsense use an XML file for config data, like pfSense?

The OPNsense docs include a few plugins for OpenVPN (see below) -- so it seems like this should be possible.

===============================================================
Plugin VPN options
Via plugins additional VPN technologies are offered, including:

Legacy L2TP & PPTP

Tinc - Automatic Full Mesh Routing
Zerotier - seamlessly connect everything, requires account from zerotier.com, free for up to 100 devices.
===============================================================

If anyone can provide assistance I would appreciate it!

QuoteIt doesn't look like OPNsense uses a standard OpenVPN server.conf config file so I'm not sure where to load the plugin
OPNsense uses a default server.conf that is generated via the GUI.
You will find the file under: /var/etc/openvpn/

For example --> /var/etc/openvpn/server1.conf

Hope this helps.

The plugin can probably be loaded as an advanced custom config. However you must compile the shared object first on OPNsense if that works.

This seems to be the repository:
https://github.com/duosecurity/duo_openvpn

From the issues I think you may need to patch the makefile to make it work.