Allow git

This commit is contained in:
Bob Mottram 2014-09-21 12:53:31 +01:00
parent dfe1a07f73
commit f3ced59182
1 changed files with 10 additions and 0 deletions

View File

@ -399,6 +399,15 @@ function configure_firewall_for_ssh {
echo 'configure_firewall_for_ssh' >> $COMPLETION_FILE 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 { function configure_firewall_for_email {
if grep -Fxq "configure_firewall_for_email" $COMPLETION_FILE; then if grep -Fxq "configure_firewall_for_email" $COMPLETION_FILE; then
return return
@ -870,6 +879,7 @@ update_the_kernel
enable_zram enable_zram
random_number_generator random_number_generator
configure_firewall configure_firewall
configure_firewall_for_git
configure_firewall_for_ssh configure_firewall_for_ssh
configure_firewall_for_email configure_firewall_for_email
set_your_domain_name set_your_domain_name