totp
This commit is contained in:
18
conf/client.conf
Normal file
18
conf/client.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote 10.60.0.3 1194 # ip da vpn gateway
|
||||
persist-tun
|
||||
persist-key
|
||||
|
||||
# certificados
|
||||
ca /etc/openvpn/client/ca.crt
|
||||
cert /etc/openvpn/client/user.crt
|
||||
key /etc/openvpn/client/user.key
|
||||
|
||||
# auth
|
||||
cipher AES-256-GCM
|
||||
auth SHA256
|
||||
|
||||
auth-user-pass
|
||||
tls-auth /etc/openvpn/client/ta.key 1
|
||||
0
conf/httpd.conf
Normal file
0
conf/httpd.conf
Normal file
0
conf/openssl.cnf
Normal file
0
conf/openssl.cnf
Normal file
0
conf/ssl.conf
Normal file
0
conf/ssl.conf
Normal file
3
conf/totp
Normal file
3
conf/totp
Normal file
@@ -0,0 +1,3 @@
|
||||
auth required pam_unix.so workaround_procrastination
|
||||
auth required pam_google_authenticator.so
|
||||
account required pam_unix.so
|
||||
23
conf/vpn.conf
Normal file
23
conf/vpn.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
local 10.60.0.3
|
||||
port 1194
|
||||
proto udp
|
||||
dev tun
|
||||
|
||||
# Bro is too honorable
|
||||
ca /etc/openvpn/server/ca.crt
|
||||
cert /etc/openvpn/server/vpn.crt
|
||||
key /etc/openvpn/server/vpn.key
|
||||
dh /etc/openvpn/server/dh2048.pem
|
||||
|
||||
server 10.8.0.0 255.255.255.0
|
||||
verb 4
|
||||
|
||||
topology subnet
|
||||
|
||||
# auth
|
||||
cipher AES-256-GCM
|
||||
auth SHA256
|
||||
|
||||
# plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so login
|
||||
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so totp
|
||||
tls-auth /etc/openvpn/server/ta.key 0
|
||||
Reference in New Issue
Block a user