Commit 826f73fc authored by Levin Zimmermann's avatar Levin Zimmermann

playbook: Fix firewall

parent 15e642b9
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
ip6tables -A INPUT -p tcp --dport $LISTEN_SENSOR_PORT -j ACCEPT ip6tables -A INPUT -p tcp --dport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A INPUT -p udp --dport $LISTEN_SENSOR_PORT -j ACCEPT ip6tables -A INPUT -p udp --dport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -A OUTPUT -p tcp --sport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -A OUTPUT -p udp --sport $LISTEN_SENSOR_PORT -j ACCEPT
roles: roles:
- role: olimex-board - role: olimex-board
...@@ -11,14 +11,13 @@ ...@@ -11,14 +11,13 @@
- iptables_rules: | - iptables_rules: |
# To send data to IoT-Gateway # To send data to IoT-Gateway
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
LISTEN_SENSOR_PORT=24224 LISTEN_SENSOR_PORT=24224
ip6tables -A OUTPUT -p tcp --dport $LISTEN_SENSOR_PORT -j ACCEPT ip6tables -A OUTPUT -p tcp --dport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A OUTPUT -p udp --dport $LISTEN_SENSOR_PORT -j ACCEPT ip6tables -A OUTPUT -p udp --dport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -A INPUT -p tcp --sport $LISTEN_SENSOR_PORT -j ACCEPT
ip6tables -A INPUT -p udp --sport $LISTEN_SENSOR_PORT -j ACCEPT
roles: roles:
- role: olimex-sensor - role: olimex-sensor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment