Advertisement
fduran

Linux: Block IP with iptables

Aug 23rd, 2011
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. # www.fduran.com
  2. # Block an external attacker's IP address (1.2.3.4) with netfilter (iptables)
  3. /sbin/iptables --append INPUT --source 1.2.3.4 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement