mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-31 02:51:31 +01:00
Add logs
Can be useful.
This commit is contained in:
parent
2db5ff8adf
commit
218e474f85
@ -369,7 +369,9 @@ persist-key
|
|||||||
persist-tun
|
persist-tun
|
||||||
crl-verify crl.pem
|
crl-verify crl.pem
|
||||||
tls-server
|
tls-server
|
||||||
tls-auth tls-auth.key 0" >> /etc/openvpn/server.conf
|
tls-auth tls-auth.key 0
|
||||||
|
status openvpn-status.log
|
||||||
|
verb 3" >> /etc/openvpn/server.conf
|
||||||
# Enable net.ipv4.ip_forward for the system
|
# Enable net.ipv4.ip_forward for the system
|
||||||
sed -i '/\<net.ipv4.ip_forward\>/c\net.ipv4.ip_forward=1' /etc/sysctl.conf
|
sed -i '/\<net.ipv4.ip_forward\>/c\net.ipv4.ip_forward=1' /etc/sysctl.conf
|
||||||
if ! grep -q "\<net.ipv4.ip_forward\>" /etc/sysctl.conf; then
|
if ! grep -q "\<net.ipv4.ip_forward\>" /etc/sysctl.conf; then
|
||||||
@ -488,10 +490,11 @@ resolv-retry infinite
|
|||||||
nobind
|
nobind
|
||||||
persist-key
|
persist-key
|
||||||
persist-tun
|
persist-tun
|
||||||
|
setenv opt block-outside-dns
|
||||||
|
verb 3
|
||||||
remote-cert-tls server
|
remote-cert-tls server
|
||||||
cipher AES-256-CBC
|
cipher AES-256-CBC
|
||||||
auth SHA512
|
auth SHA512
|
||||||
setenv opt block-outside-dns
|
|
||||||
tls-version-min 1.2
|
tls-version-min 1.2
|
||||||
tls-client" >> /etc/openvpn/client-common.txt
|
tls-client" >> /etc/openvpn/client-common.txt
|
||||||
if [[ "$VARIANT" = '1' ]]; then
|
if [[ "$VARIANT" = '1' ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user