This commit is contained in:
Vasco
2026-04-21 22:27:02 +01:00
parent f8b9d52a96
commit 8d1992c597
3 changed files with 9 additions and 1 deletions

View File

@@ -6,7 +6,10 @@
# --- configuração --- #
source VM_CONFIG.sh
yum install -y google-authenticator
yum install -y google-authenticator qrencode ntpsec
systemctl stop chronyd
ntpdate pool.ntp.org
systemctl start chronyd
# --- forwarding --- #
if_fora="enp0s8"

View File

@@ -16,3 +16,5 @@ auth SHA256
auth-user-pass
tls-auth /etc/openvpn/client/ta.key 1
remote-cert-tls server

View File

@@ -21,3 +21,6 @@ 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
static-challenge "Enter TOTP: " 1
handshake-window 120