Skip to content

Instantly share code, notes, and snippets.

@mcprat
Last active April 18, 2021 02:11
Show Gist options
  • Save mcprat/8187a691fed84595aeef1807cc2674a5 to your computer and use it in GitHub Desktop.
Save mcprat/8187a691fed84595aeef1807cc2674a5 to your computer and use it in GitHub Desktop.
debian 10 openvpn server
port 9090
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth hmac.key
key-direction 0
cipher AES-256-CBC
auth SHA256
plugin /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so login
verify-client-cert optional
username-as-common-name
topology subnet
server 10.10.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir clients
client-to-client
keepalive 10 120
max-clients 20
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
explicit-exit-notify 1
reneg-sec 36000
verb 4
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 64.6.64.6"
#route 192.168.4.0 255.255.255.0
#route 192.168.10.0 255.255.255.0
#route 192.168.101.0 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment