LoginSignup
0
0

More than 3 years have passed since last update.

iptables ACCEPT ALL

Last updated at Posted at 2019-07-24

iptables ACCEPT ALL

iptables

LocalForward も RemoteForward も出来なくなったからファイアウォールを切ってみました

Backup

sudo iptables-save > secure

insecure bad policy

echo '# Bad policy
*nat
-A INPUT -j ACCEPT
-A OUTPUT -j ACCEPT
COMMIT
*filter
-A INPUT -j ACCEPT
-A FORWARD -j ACCEPT
-A OUTPUT -j ACCEPT
COMMIT
' | sudo iptables-restore
sudo iptables -L

Restore

sudo iptables-restore < secure

Security

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0