差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
linux:commands:network:iptables [2020/02/09 17:06] – [設定内容をチェインごとに表示] ともやん | linux:commands:network:iptables [2020/02/10 08:53] (現在) – ともやん | ||
---|---|---|---|
行 31: | 行 31: | ||
REDIRECT | REDIRECT | ||
REDIRECT | REDIRECT | ||
+ | </ | ||
+ | |||
+ | ===== nat テーブルの削除 ===== | ||
+ | **iptables -t < | ||
+ | **iptables -t < | ||
+ | < | ||
+ | $ sudo iptables -t nat -nL PREROUTING --line-numbers | ||
+ | Chain PREROUTING (policy ACCEPT) | ||
+ | num target | ||
+ | 1 REDIRECT | ||
+ | 2 REDIRECT | ||
+ | |||
+ | $ sudo iptables -t nat -D PREROUTING 2 | ||
+ | $ sudo iptables -t nat -D PREROUTING 1 | ||
+ | |||
+ | $ sudo iptables -t nat -nL PREROUTING --line-numbers | ||
+ | Chain PREROUTING (policy ACCEPT) | ||
+ | num target | ||
+ | |||
</ | </ | ||
行 47: | 行 66: | ||
$ sudo iptables-restore < iptables_save.txt | $ sudo iptables-restore < iptables_save.txt | ||
</ | </ | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[https:// | ||
+ | |||