forked from apoltix/blockip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (22 loc) · 813 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
blockip 0.1
(C) Christian Rasmussen, apoltix, 2010.
Licensed under the MIT License (see LICENSE).
Python script for a quick and easy-to-remember way to add and delete IP-addresses to the iptables INPUT DROP list.
This utility requires superuser privileges (or rather, iptables does).
Tested working on Ubuntu 10.04 Lucid Lynx. Should work on all OSes with iptables installed.
Usage: blockip [ips|-h|-a ip|-d ip|-l]
-h, --help:
Displays this message.
ips:
Adds IP-addresses to the block list. Example:
blockip 1.2.3.4 2.3.4.5
-a ip, --add ip:
Adds an IP-address to the block list. Example:
blockip -a 1.2.3.4
-d ip, --delete ip:
Removes an IP-address from the block list. Example:
blockip -d 1.2.3.4
-l, --list:
Lists the blocked IP-addresses.
-v, --version:
Displays the version of the utility."