ubuntu 18.04 changes
This commit is contained in:
parent
923baae755
commit
582a062f2f
@ -298,7 +298,9 @@ status openvpn-status.log
|
|||||||
verb 3
|
verb 3
|
||||||
crl-verify crl.pem
|
crl-verify crl.pem
|
||||||
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn" >> /etc/openvpn/server.conf
|
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn" >> /etc/openvpn/server.conf
|
||||||
echo "auth required /lib/security/pam_google_authenticator.so secret=/etc/openvpn/google-authenticator/\${USER} user=gauth forward_pass" > /etc/pam.d/openvpn
|
mkdir -p /usr/lib/openvpn/
|
||||||
|
ln -s /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so /usr/lib/openvpn/openvpn-plugin-auth-pam.so
|
||||||
|
echo "auth required /lib/x86_64-linux-gnu/security/pam_google_authenticator.so secret=/etc/openvpn/google-authenticator/\${USER} user=gauth forward_pass" > /etc/pam.d/openvpn
|
||||||
# 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
|
||||||
@ -375,7 +377,6 @@ remote-cert-tls server
|
|||||||
auth SHA512
|
auth SHA512
|
||||||
cipher AES-256-CBC
|
cipher AES-256-CBC
|
||||||
comp-lzo
|
comp-lzo
|
||||||
setenv opt block-outside-dns
|
|
||||||
key-direction 1
|
key-direction 1
|
||||||
verb 3
|
verb 3
|
||||||
ns-cert-type server
|
ns-cert-type server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user