[root@ban]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 132.111.16.8 anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
----------------
為什么非132.111.16.8的IP就ssh不了該主機了。。。
按iptables規則,沒匹配到規則,不是就默認ACCEPT了??
uj5u.com熱心網友回復:
沒匹配到規則,就默認ACCEPT,那還設定ACCEPT干什么
uj5u.com熱心網友回復:
知道沒啥意義,就想驗證下規則,為什么其他IP都不行了。。uj5u.com熱心網友回復:
把防火墻關了試一下,你的ip就設定這個怎么能用其他的ip登陸ssh轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/24283.html
標籤:系統維護與使用區
上一篇:配備兩個檔案關鍵字相同的行
