linux:commands:network:iptables

文書の過去の版を表示しています。


iptables

filter テーブル

$ sudo iptables -nL

※管理者でパスが通っていない場合は、以下のように呼び出す必要がある。

$ sudo /sbin/iptables -nL

nat テーブル

$ sudo iptables -t nat -nL

nat テーブルの PREROUTING チェイン

$ sudo iptables -t nat -nL PREROUTING
$ sudo iptables-save
$ sudo iptables-save > iptables_save.txt
$ sudo iptables-restore < iptables_save.txt
  • linux/commands/network/iptables.1581235025.txt.gz
  • 最終更新: 2020/02/09 16:57
  • by ともやん