infoMore than 1 year has passed since last update.
Oracle Cloudでiptables-nftを設定
Last updated at Posted at 2022-12-31
iptablesの編集
-
/etc/iptables/ipv{4,6}
を編集する
-
sudo iptables-restore < /etc/iptables/rules.v4
-
sudo /etc/init.d/netfilter-persistent reload
だと古いエントリーが消えてくれなかった
- Dockerをインストールしている場合はDocker関係のエントリーが消えてしまうので
sudo service docker restart
-
snap install docker
でインストールすると、iptables-legacyを利用してしまうので、apt install docker.io
でインストールする
1Go to list of users who liked
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up