inetd_ratelimit.conf revision 1.1 1 # $NetBSD: inetd_ratelimit.conf,v 1.1 2021/08/29 09:54:18 christos Exp $
2
3 127.0.0.1:
4
5 #DGRAM WAIT SERVICE
6
7 #Test ip_max of 3
8 5432 on
9 protocol = udp,
10 wait = yes,
11 user = root,
12 service_max = 5,
13 ip_max = 3,
14 exec = test_server,
15 args = test_server dgram wait;
16
17 #Test ip_max of 0
18 5433 on
19 protocol = udp,
20 wait = yes,
21 user = root,
22 ip_max = 0,
23 exec = test_server,
24 args = test_server dgram wait;
25
26 #Test service_max of 2
27 5434 on
28 protocol = udp,
29 wait = yes,
30 user = root,
31 service_max = 2,
32 exec = test_server,
33 args = test_server dgram wait;
34
35 #Test service_max of 0
36 5435 on
37 protocol = udp,
38 wait = yes,
39 user = root,
40 service_max = 0,
41 exec = test_server,
42 args = test_server dgram wait;
43
44 #STREAM WAIT SERVICE
45
46 #Test service_max of 2
47 5434 on
48 protocol = tcp,
49 wait = yes,
50 user = root,
51 service_max = 2,
52 exec = test_server,
53 args = test_server stream wait;
54
55 #Test service_max of 0
56 5435 on
57 protocol = tcp,
58 wait = yes,
59 user = root,
60 service_max = 0,
61 exec = test_server,
62 args = test_server stream wait;
63
64 #STREAM NOWAIT SERVICE
65
66 #Test ip_max of 3
67 5436 on
68 protocol = tcp,
69 wait = no,
70 user = root,
71 service_max = 5,
72 ip_max = 3,
73 exec = test_server,
74 args = test_server stream nowait;
75
76 #Test ip_max of 0
77 5437 on
78 protocol = tcp,
79 wait = no,
80 user = root,
81 ip_max = 0,
82 exec = test_server,
83 args = test_server stream nowait;
84
85 #Test service_max of 2
86 5438 on
87 protocol = tcp,
88 wait = no,
89 user = root,
90 service_max = 2,
91 exec = test_server,
92 args = test_server stream nowait;
93
94 #Test service_max of 0
95 5439 on
96 protocol = tcp,
97 wait = no,
98 user = root,
99 service_max = 0,
100 exec = test_server,
101 args = test_server stream nowait;
102