iptablesのconfigをテストする方法
構文が間違っていないかの確認は iptables-restoreコマンドを使う。
run0 iptables-restore --test [file]このとき /run/xtables.lock をopenするので、sudoで昇格しておく必要がある。
設定を反映できているかの確認は iptables —list を実行する。
run0 iptables --list構文が間違っていないかの確認は iptables-restoreコマンドを使う。
run0 iptables-restore --test [file]このとき /run/xtables.lock をopenするので、sudoで昇格しておく必要がある。
設定を反映できているかの確認は iptables —list を実行する。
run0 iptables --list