From f3ced59182c0497924b3f0c29b1e27f4363ecaef Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Sep 2014 12:53:31 +0100 Subject: [PATCH] Allow git --- install-freedombone.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 4bb37f35..dd649848 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -399,6 +399,15 @@ function configure_firewall_for_ssh { echo 'configure_firewall_for_ssh' >> $COMPLETION_FILE } +function configure_firewall_for_git { + if grep -Fxq "configure_firewall_for_git" $COMPLETION_FILE; then + return + fi + iptables -A INPUT -i eth0 -p tcp --dport 9418 -j ACCEPT + save_firewall_settings + echo 'configure_firewall_for_git' >> $COMPLETION_FILE +} + function configure_firewall_for_email { if grep -Fxq "configure_firewall_for_email" $COMPLETION_FILE; then return @@ -870,6 +879,7 @@ update_the_kernel enable_zram random_number_generator configure_firewall +configure_firewall_for_git configure_firewall_for_ssh configure_firewall_for_email set_your_domain_name