1
0
Fork 0

Added masquerading iptables rule
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
Nis Wechselberg 2025-06-21 23:49:37 +02:00
parent b65650d733
commit 6d80d7257e
Signed by: enbewe
GPG key ID: 7B25171F921B9E57

View file

@ -100,3 +100,13 @@
value: '{{ item.value }}' value: '{{ item.value }}'
loop: '{{ server_openvpn_sysctl_settings | dict2items }}' loop: '{{ server_openvpn_sysctl_settings | dict2items }}'
notify: 'Restart openvpn server' notify: 'Restart openvpn server'
- name: 'Configure masquerading on firewall for the vpn traffic to the internet'
become: true
ansible.builtin.iptables:
chain: 'POSTROUTING'
comment: 'Enable masquerading from the vpn network'
out_interface: '{{ server_openvpn_nat_interface }}'
source: '{{ server_openvpn_ipv4_pool }}/24'
table: 'nat'
jump: 'MASQUERADE'