This commit is contained in:
2024-09-01 22:50:53 +03:00
parent 045395a67d
commit 4202995e1b

View File

@@ -98,12 +98,15 @@
out_interface: "{{ lte_int.stdout }}" out_interface: "{{ lte_int.stdout }}"
jump: ACCEPT jump: ACCEPT
- name: Enable masquerading for eth2 - name: Enable masquerading for {{ lte_int.stdout }}
iptables: iptables:
chain: POSTROUTING chain: POSTROUTING
jump: MASQUERADE jump: MASQUERADE
table: nat
out_interface: "{{ lte_int.stdout }}" out_interface: "{{ lte_int.stdout }}"
- name: Save iptables rules
command: iptables-save -f /etc/iptables/iptables.rules
# - name: Configure {{ wifi_int.stdout_lines | first }} interface # - name: Configure {{ wifi_int.stdout_lines | first }} interface
# template: # template:
# src: 25-wireless.network.j2 # src: 25-wireless.network.j2