1.防火墙添加端口
iptables -I INPUT -p tcp --dport 22280 -j ACCEPT
#(范围:iptables -A INPUT -p tcp --dport 22280:22290 -j ACCEPT)
#提示没有命令(command not found)执行如下
#sudo apt-get update
#sudo apt-get install iptables
2.更新设置
netfilter-persistent save
netfilter-persistent reload
#提示没有命令(command not found)执行如下
#sudo apt-get install iptables-persistent
网友评论