This commit is contained in:
2024-09-01 22:47:35 +03:00
parent ace2896790
commit 045395a67d

View File

@@ -90,6 +90,20 @@
- name: Run nmcli to activate LTE access point connection
command: /usr/bin/nmcli c up {{ LTE_con_name }}
- name: Allow traffic from {{ wifi_int.stdout }} to {{ lte_int.stdout }}
iptables:
chain: FORWARD
in_interface: "{{ wifi_int.stdout }}"
out_interface: "{{ lte_int.stdout }}"
jump: ACCEPT
- name: Enable masquerading for eth2
iptables:
chain: POSTROUTING
jump: MASQUERADE
out_interface: "{{ lte_int.stdout }}"
# - name: Configure {{ wifi_int.stdout_lines | first }} interface
# template:
# src: 25-wireless.network.j2