浏览代码

Also allow port 22

Bob Mottram 10 年前
父节点
当前提交
6edbd79d88
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      install-freedombone.sh

+ 1
- 0
install-freedombone.sh 查看文件

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