Vixual / 122 posts / tags / 62 comments / feed / comments feed /
Search:

防火牆的一些基本用法

  • 列出目前的規則
  • iptables -L -n
  • 刪除 “INPUT” 的第 1 條規則
  • iptables -D INPUT 1
  • 丟棄來自 192.168.1.203 的封包
  • iptables -A INPUT -p all -s 192.168.1.203 -j DROP
  • 禁止 192.168.1.203 的用戶以 SSH 登入(Port:22)
  • iptables -A INPUT -p tcp -s 192.168.1.203 --dport 22 -j DROP
  • 儲存防火牆的設定到 filename
  • iptables-save > filename
  • 從 filename 讀取防火牆的設定
  • iptables-restore < filename
    收藏至網路書籤: These icons link to social bookmarking sites where readers can share and discover new web pages.
    • del.icio.us
    • Google
    • Live
    • YahooMyWeb
    • MyShare
    • Hemidemi
    • Funp

    您可能會對以下這些文章感興趣

    您對這篇文章的評價:
    1 Star2 Stars3 Stars4 Stars5 Stars (有 1 人給予評價)
    Loading ... Loading ...

    沒有任何留言

    發表您的評論

    (您的留言會在審核後才能公開)