Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View webpepper's full-sized avatar
😛

webpepper webpepper

😛
View GitHub Profile
@webpepper
webpepper / iptables.md
Last active January 15, 2020 14:53
Block an IP with iptables

Block an IP

Use a real IPv4 instead of x.x.x.x

This will add the block rule to the beginning of the list moving (not overwriting) everything else down.

sudo /sbin/iptables -I INPUT 1 -s x.x.x.x -j DROP