quick OpenVPN

Jbn1233
Mar 16, 2021

--

wget https://git.io/vpn -O openvpn-install.sh

After run “openvpn-install.sh” stop the VPN and update configuration file to:

local 192.168.0.63
port 443
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 192.168.0.63"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 1
crl-verify crl.pem
log-append /var/log/openvpn.log

then start OpenVPN server with this command:

/usr/sbin/openvpn --status /run/openvpn-server/status-server.log --status-version 2 --duplicate-cn --config /etc/openvpn/server/server.conf

Ps. yes I know this one is TCP.

--

--

Jbn1233
Jbn1233

Written by Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |

No responses yet