diff --git a/roles/configure/tasks/main.yaml b/roles/configure/tasks/main.yaml index 7c4dd14..0daefa9 100644 --- a/roles/configure/tasks/main.yaml +++ b/roles/configure/tasks/main.yaml @@ -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