bismall
V2EX  ›  问与答

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

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