Also allow port 22

This commit is contained in:
Bob Mottram 2014-09-21 18:52:33 +01:00
parent 93f2648106
commit 6edbd79d88
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ function configure_firewall_for_ssh {
if grep -Fxq "configure_firewall_for_ssh" $COMPLETION_FILE; then
return
fi
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport $SSH_PORT -j ACCEPT
save_firewall_settings
echo 'configure_firewall_for_ssh' >> $COMPLETION_FILE