The scenario:
- DNS zone
myzone.com
defined in BIND. - Authoritative name server at
123.16.123.1
. - Subzone
sub.myzone.com
with an authoritative name server at123.16.123.10
. - Wishing to forward sub-zone to authoritative name server.
#!/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 "" |
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 | |
echo -n "loading ipv4 packet filter... " | |
### clear tables | |
iptables --flush | |
iptables --delete-chain | |
iptables --table mangle --flush | |
iptables --table mangle --delete-chain |