Chapter 7. Scripting and Plugins

Once deployed, a personal or enterprise VPN can be a powerful tool both with regard to security as well as functionality. A well-engineered VPN will allow users to connect to distant resources securely. Sometimes, however, just having a VPN isn't quite enough. A given application may mandate more strict security standards or require better monitoring and control.

Integrating plugins and scripting with OpenVPN can resolve many of these organizational or functional necessities. This chapter will demonstrate how plugins can be used to enhance authentication and how scripting can track connections, generate routing tables, and do much more.


Scripting is likely one of the best tools available to an OpenVPN administrator. ...

Get Mastering OpenVPN now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.