Tag Archive: iptables

Nov 09

A few IP Tables (IPv4) examples

IP Tables (IPv4) example #!/bin/bash # Flush rules iptables -F # DROP everything by default iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROP # Allow loopack iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT # Allow incoming SSH iptables -A INPUT -i eth0 -p tcp …

Continue reading »