Skip to content

Python script for a quick and easy-to-remember way to add and delete IP-addresses to the iptables block list (DROP).

License

Notifications You must be signed in to change notification settings

apoltix/blockip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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."

About

Python script for a quick and easy-to-remember way to add and delete IP-addresses to the iptables block list (DROP).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages