The figure below calls out
- The netfilter hooks
- The order of table traversal
#!/bin/bash | |
echo -n "loading ipv4 packet filter... " | |
### clear tables | |
iptables --flush | |
iptables --delete-chain | |
iptables --table mangle --flush | |
iptables --table mangle --delete-chain |
IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.
The following list is a great set of documentation for iptables
. I used them to compile this documentation.
#!/bin/bash | |
# wget -nv -O named.root https://www.internic.net/domain/named.root | |
echo "[i] Backing up root.hints ..." | |
cd /var/lib/unbound | |
sudo cp root.hints $(date +%F).root.hints | |
if [ -s $(date +%F).root.hints ] | |
then | |
echo "[✓] Backup root.hints success!" | |
echo "" |