Gentoo Archives: gentoo-security

From: boger <boger@×××.ru>
To: gentoo-security@l.g.o
Subject: [gentoo-security] port knocking
Date: Tue, 11 Oct 2005 18:04:30
Message-Id: 1699876524.20051011220020@ttk.ru
This is result of last week discussion about port knockers.
Its my second bash script (first is my firewall), so any feedback will be appreshiated ;) 

usage: ./knocker.sh <config file name> del 
Path to config file is constant in knocker.sh.
 del - is optional, simply deletes target chain 

script has no limits on knock sequences, and demands statefull filtering enabled 
ipt -i $IF_INET -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

Attachments

File name MIME type
knocker.sh application/octet-stream
test application/octet-stream