↧
View Your Current iptables Rules
sudo iptables -L sudo ip6tables -L Tags: iptablesfirewall
View ArticleAn example iptables rulesets to secure your linux server if running a web...
# Allow all loopback (lo0) traffic and reject traffic # to localhost that does not originate from lo0. -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo -s 127.0.0.0/8 -j REJECT # Allow ping and traceroute....
View ArticleImporting firewall rulesets for immediate use.
sudo iptables-restore < /tmp/v4 sudo ip6tables-restore < /tmp/v6 Tags: iptablesfirewall
View ArticleAutomate loading of iptables rules on boot for Ubuntu
sudo apt-get install iptables-persistent Tags: iptablesfirewall
View ArticleInserting, Deleting or Replacing iptables Rules
sudo iptables -L --line-numbers sudo iptables -I INPUT 9 -p tcp --dport 8080 -j ACCEPT sudo iptables -D INPUT 9 sudo iptables -R INPUT 11 -m limit --limit 3/min -j LOG --log-prefix...
View Article