1
2
3
4
5
6
7
8tcprules(1)                 General Commands Manual                tcprules(1)
9
10
11
12tcprules - compile rules for tcpserver
13
14

SYNOPSIS

16       tcprules [OPTIONS] <rules.cdb> <rules.tmp>
17
18

DESCRIPTION

20       tcprules  reads  rules from its standard input and writes them into cdb
21       binary format suitable for quick access by tcpserver(1).  tcprules  can
22       be  used  while tcpserver(1) is running. It ensures that cdb is updated
23       automatically. It does it by first writing the  rules  to  a  temporary
24       file  and  then writing the temporary file to the cdb. If the temporary
25       file already exists, it is destroyed.
26
27

RULE FORMAT

29       A rule is one line. A file containing rules may also  contain  comments
30       beginning  with '#'. Each rule contains an address, a colon, and a list
31       of instructions, with no extra spaces.  When  tcpserver(1)  receives  a
32       connection  from that address, it follows the instruction. tcpserver(1)
33       uses the first rule it matches.
34
35       tcprules treats  1.2.3.37-43:ins  as  an  abbreviation  for  the  rules
36       1.2.3.37:ins  -  1.2.3.43:ins.  Similarly 10.2-3 is an abbreviation for
37       10.2.:ins and 10.3.:ins.
38
39       The instructions in a rule must begin with an allow or deny. deny tells
40       tcpserver(1) to drop the connection without processing any further.
41
42

OPTIONS

44       -h --help
45               print this help
46
47
48       -v --version
49               print version information
50
51

SEE

53       http://cr.yp.to/ucspi-tcp/tcprules.html
54
55

BUGS

57       Report bugs to <pj.pandit@yahoo.co.in>
58
59

Manual Author

61       Prasad J Pandit
62
63
64
65                                                                   tcprules(1)
Impressum