diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-03 03:47:02 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-03 03:47:02 +0200 |
| commit | a8213137a7862cc16edd8c7d03aeeca4d05c95a2 (patch) | |
| tree | f75e44a56f0aa191e8a306e87a95f3bb37728cf8 | |
| parent | ec12de4bc29476f7733a2e5abec91687ee8985ad (diff) | |
Revert "Fix networking issue"
This reverts commit 06e686bc12ee10697431f056efbaecdcba1681d2.
| -rw-r--r-- | roles/wireguard_gateway/tasks/main.yml | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/roles/wireguard_gateway/tasks/main.yml b/roles/wireguard_gateway/tasks/main.yml index c33a49bf..f8cb1ed0 100644 --- a/roles/wireguard_gateway/tasks/main.yml +++ b/roles/wireguard_gateway/tasks/main.yml @@ -21,17 +21,6 @@ notify: "Reload sysctl" # IPv4 iptables rules -- name: "Add IPv4 NAT masquerading for traffic through internet" - become: true - ansible.builtin.iptables: - table: "nat" - chain: "POSTROUTING" - source: "{{ (ansible_default_ipv4.address.split('.')[0:3] | join('.')) }}.0/24" - out_interface: "{{ ansible_default_ipv4.interface }}" - jump: "MASQUERADE" - comment: "NAT local subnet traffic through internet" - state: "present" - - name: "Add IPv4 NAT masquerading for traffic through VPN" become: true ansible.builtin.iptables: @@ -64,19 +53,6 @@ state: "{{ 'present' if wireguard_gateway_enabled else 'absent' }}" # IPv6 iptables rules -- name: "Add IPv6 NAT masquerading for traffic through internet" - become: true - ansible.builtin.iptables: - table: "nat" - chain: "POSTROUTING" - source: "{{ (ansible_default_ipv6.address.split(':')[:4] | join(':')) + '::/64' }}" - out_interface: "{{ ansible_default_ipv6.interface }}" - jump: "MASQUERADE" - comment: "NAT IPv6 local subnet traffic through internet" - ip_version: "ipv6" - state: "present" - when: ansible_default_ipv6.address is defined - - name: "Add IPv6 NAT masquerading for traffic through VPN" become: true ansible.builtin.iptables: |
