bismall
V2EX  ›  问与答

请问下 iptables 禁止所有入站,再开启入站的问题...

  •  
  •   bismall · Jun 18, 2015 · 2252 views
    This topic created in 4067 days ago, the information mentioned may be changed or developed.
    iptables -P INPUT DROP
    iptables -I INPUT -p tcp -m multiport --dports 22,80,443,1723 -j ACCEPT
    iptables -I INPUT -p udp --dport 53 -j ACCEPT

    连SSH都无法连接,命令该怎么修正?
    Supplement 1  ·  Jun 18, 2015
    服务器ping都ping不到
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   951 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:25 · PVG 03:25 · LAX 12:25 · JFK 15:25
    ♥ Do have faith in what you're doing.