Open marissaeinhorn opened 2 years ago
10.63.214.48
/root/pki.sh
/etc/openvpn/server
iptables -t nat -A POSTROUTING -s {{ ansible_host }}/25 -o ens32 -j MASQUERADE
iptables -A INPUT -i ens32 -m state --state NEW -p udp --dport 1194 -j ACCEPT
iptables -A FORWARD -i tun+ -o ens32 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i ens32 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables-save -f /etc/iptables/iptables.rules
30-ipforward.conf
/etc/systemd/system/openvpn.service
pki.sh.txt
10.63.214.48
/root/pki.sh
/etc/openvpn/server
iptables -t nat -A POSTROUTING -s {{ ansible_host }}/25 -o ens32 -j MASQUERADE
iptables -A INPUT -i ens32 -m state --state NEW -p udp --dport 1194 -j ACCEPT
iptables -A FORWARD -i tun+ -o ens32 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i ens32 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables-save -f /etc/iptables/iptables.rules
30-ipforward.conf
to/etc/systemd/system/openvpn.service
. Owner root, group root, permissions 0644