Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Created September 15, 2016 13:17
Show Gist options
  • Save waleedsamy/6261e417bd84e8b3298da9ef8b340284 to your computer and use it in GitHub Desktop.
Save waleedsamy/6261e417bd84e8b3298da9ef8b340284 to your computer and use it in GitHub Desktop.
save iptable to file with name like iptables-20160915151528
iptables-save > /root/iptables-$(date +"%Y%m%d%H%M%S")
# iptables-restore < /root/iptables-20160915151528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment