2018-03-06 13:07:16 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: setup the network configuration
|
|
|
|
template:
|
|
|
|
src: interface.j2
|
|
|
|
dest: /etc/network/interfaces.d/gsm-tester
|
2018-06-05 12:47:04 +00:00
|
|
|
register: gsm_tester_network_interface
|
|
|
|
|
|
|
|
- name: start all network interface
|
|
|
|
command: ifup -a
|
2018-06-07 15:12:48 +00:00
|
|
|
when: gsm_tester_network_interface is changed
|
2019-11-26 13:07:01 +00:00
|
|
|
|
|
|
|
- name: allow ip forwarding and masquerading traffic from internal network (iptables)
|
|
|
|
template:
|
|
|
|
src: etc/iptables-ogt
|
|
|
|
dest: /etc/network/if-up.d/iptables-ogt
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: allow ip forwarding from internal network (sysctl)
|
|
|
|
copy:
|
|
|
|
src: ogt-sysctl.conf
|
|
|
|
dest: /etc/sysctl.d
|
|
|
|
notify: restart udev
|