tcprules (1) - Linux Man Pages
- tcprules [OPTIONS] <rules.cdb> <rules.tmp>
DESCRIPTIONtcprules reads rules from its standard input and writes them into cdb binary format suitable for quick access by tcpserver(1). tcprules can be used while tcpserver(1) is running. It ensures that cdb is updated automatically. It does it by first writing the rules to a temporary file and then writing the temporary file to the cdb. If the temporary file already exists, it is destroyed.
RULE FORMATA rule is one line. A file containing rules may also contain comments beginning with '#'. Each rule contains an address, a colon, and a list of instructions, with no extra spaces. When tcpserver(1) receives a connection from that address, it follows the instruction. tcpserver(1) uses the first rule it matches.
tcprules treats 188.8.131.52-43:ins as an abbreviation for the rules 184.108.40.206:ins - 220.127.116.11:ins. Similarly 10.2-3 is an abbreviation for 10.2.:ins and 10.3.:ins.
The instructions in a rule must begin with an allow or deny. deny tells tcpserver(1) to drop the connection without processing any further.
- -h --help
print this help
- -v --version
print version information
BUGSReport bugs to <pj.pandit [at] yahoo.co.in>
Manual AuthorPrasad J Pandit