From 35ab675f2d3d4da259ae605941e9b235750a3049 Mon Sep 17 00:00:00 2001 From: Tim Moody Date: Wed, 6 Feb 2019 12:00:01 -0500 Subject: [PATCH] minetest add port and include in 9 addons --- roles/9-local-addons/tasks/main.yml | 6 ++++++ roles/network/templates/gateway/iiab-gen-iptables | 2 ++ 2 files changed, 8 insertions(+) diff --git a/roles/9-local-addons/tasks/main.yml b/roles/9-local-addons/tasks/main.yml index 674245bc6..fa65a7f2f 100644 --- a/roles/9-local-addons/tasks/main.yml +++ b/roles/9-local-addons/tasks/main.yml @@ -15,6 +15,12 @@ when: calibreweb_install tags: calibre-web +- name: MINETEST + include_role: + name: minetest + when: minetest_install + tags: minetest + - name: Recording STAGE 9 HAS COMPLETED ==================== lineinfile: dest: "{{ iiab_env_file }}" diff --git a/roles/network/templates/gateway/iiab-gen-iptables b/roles/network/templates/gateway/iiab-gen-iptables index 37e10452c..a9c215803 100755 --- a/roles/network/templates/gateway/iiab-gen-iptables +++ b/roles/network/templates/gateway/iiab-gen-iptables @@ -65,6 +65,7 @@ transmission_peer_port={{ transmission_peer_port }} sugarizer_port={{ sugarizer_port }} nodered_port={{ nodered_port }} mosquitto_port={{ mosquitto_port }} +minetest_port={{ minetest_port }} block_DNS={{ block_DNS }} echo "LAN is $lan and WAN is $wan" @@ -104,6 +105,7 @@ if [ "$services_externally_visible" == "True" ]; then $IPTABLES -A INPUT -p tcp --dport $mosquitto_port -m state --state NEW -i $wan -j ACCEPT $IPTABLES -A INPUT -p tcp --dport $transmission_http_port -m state --state NEW -i $wan -j ACCEPT $IPTABLES -A INPUT -p tcp --dport $transmission_peer_port -m state --state NEW -i $wan -j ACCEPT + $IPTABLES -A INPUT -p udp --dport $minetest_port -m state --state NEW -i $wan -j ACCEPT fi if [ "$iiab_gateway_enabled" == "True" ]; then