update to latest state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- openvpn-server
|
||||
- openvpn
|
||||
|
||||
- name : "Enable ipv4 forwarding via sysctl"
|
||||
ansible.posix.sysctl:
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
- name: Enable and restart openvpn daemon
|
||||
service:
|
||||
name: openvpn
|
||||
name: openvpn-server@stargate
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
||||
@ -41,6 +41,13 @@
|
||||
-A POSTROUTING -s 192.168.37.0/24 -o eth0 -j MASQUERADE
|
||||
-A POSTROUTING -s 192.168.37.0/24 -o eth2 -j MASQUERADE
|
||||
COMMIT
|
||||
-A ufw-before-input -i tun+ -j ACCEPT
|
||||
-A ufw-before-forward -i tun+ -j ACCEPT
|
||||
-A ufw-before-forward -i tun+ -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
-A ufw-before-forward -i eth0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
-A ufw-before-forward -i tun+ -o eth2 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
-A ufw-before-forward -i eth2 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
COMMIT
|
||||
# END OPENVPN RULES
|
||||
|
||||
- name: Reload ufw
|
||||
|
Reference in New Issue
Block a user