Advertisement
jfabaf

blog - iptablessave

Oct 27th, 2013
5,737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/sh
  2. iptables-save -c > /etc/iptables.rules
  3. if [ -f /etc/iptables.downrules ]; then
  4.    iptables-restore < /etc/iptables.downrules
  5. fi
  6. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement