bismall
V2EX  ›  问与答

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

  •  
  •   bismall · Jun 18, 2015 · 2160 views
    This topic created in 4015 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   ·   5447 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.