Zack's Website

My Egotistic and Esoteric Website

Ubuntu - IP Tables and Security

Ubuntu uses a set of netfilter hooks inside the Linux kernel, allowing specific kernel modules to register callback functions with the kernel's networking stack. Those functions, usually applied to the traffic in the form of filtering and modification rules, are called for every packet that traverses the respective hook within the networking stack. The iptables commands help us with this filtering...

List Current IP Tables Rules

iptables --list-rules

Drop All Incoming (INPUT) Traffic from to (/17)

iptables -A INPUT -s -j DROP