New sequence for installing openvpn with setup of custom scripts

This commit is contained in:
2021-03-27 05:35:11 +00:00
parent 260daa009c
commit 741d0c74c9
7 changed files with 168 additions and 0 deletions

22
seqs/openvpn/my.conf Normal file
View File

@@ -0,0 +1,22 @@
# Set output verbosity (3 recommended by openvpn)
# 0 -- No output except fatal errors.
# 1 to 4 -- Normal usage range.
# 5 -- Output R and W characters to the console for each packet read
# and write, uppercase is used for TCP/UDP packets and lowercase is
# used for TUN/TAP packets.
# 6 to 11 -- Debug info range (see errlevel.h for additional informtion
verb 1
# Always add custom nameserver
#dhcp-option DNS 208.67.222.222
#dhcp-option DNS 84.200.69.80
# Mute common false alarm on WiFi networks
mute-replay-warnings
# Allow openvpn to call user defined scripts
script-security 2
# Execute our custom up and down scripts
up /usr/lib/openvpn/vpn-up
down /usr/lib/openvpn/vpn-down