Fedora Core 500の技
Valid XHTML 1.0!
正当なCSSです!

TOP > Linux > Fedoraの技 > 101-200 > 190

iptablesで設定を破棄するには

iptablesでの設定をすべて破棄するには"-F"オプションを利用します。

# iptables -F

個別に削除するには"-D"オプションを利用し、チェイン名とルール番号を指定します。下記の例はINPUTチェインのルール1を削除する例です。

# iptables -L --line-numbers
〜略〜
1  DROP    all -- 192.168.0.21     anywhere

# iptables -D INPUT 1

2005-12-03 作成