summaryrefslogtreecommitdiff
path: root/tests/usr.sbin/inetd/inetd_ratelimit.conf
blob: c61863fd033c25f48173ba2c2e8b542b0201d15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# $NetBSD: inetd_ratelimit.conf,v 1.1 2021/08/29 09:54:18 christos Exp $

127.0.0.1:

#DGRAM WAIT SERVICE

#Test ip_max of 3
5432 on
	protocol = udp,
	wait = yes,
	user = root,
	service_max = 5,
	ip_max = 3,
	exec = test_server,
	args = test_server dgram wait;

#Test ip_max of 0
5433 on
	protocol = udp,
	wait = yes,
	user = root,
	ip_max = 0,
	exec = test_server,
	args = test_server dgram wait;

#Test service_max of 2
5434 on
	protocol = udp,
	wait = yes,
	user = root,
	service_max = 2,
	exec = test_server,
	args = test_server dgram wait;

#Test service_max of 0
5435 on
	protocol = udp,
	wait = yes,
	user = root,
	service_max = 0,
	exec = test_server,
	args = test_server dgram wait;

#STREAM WAIT SERVICE

#Test service_max of 2
5434 on
	protocol = tcp,
	wait = yes,
	user = root,
	service_max = 2,
	exec = test_server,
	args = test_server stream wait;

#Test service_max of 0
5435 on
	protocol = tcp,
	wait = yes,
	user = root,
	service_max = 0,
	exec = test_server,
	args = test_server stream wait;

#STREAM NOWAIT SERVICE

#Test ip_max of 3
5436 on
	protocol = tcp,
	wait = no,
	user = root,
	service_max = 5,
	ip_max = 3,
	exec = test_server,
	args = test_server stream nowait;

#Test ip_max of 0
5437 on
	protocol = tcp,
	wait = no,
	user = root,
	ip_max = 0,
	exec = test_server,
	args = test_server stream nowait;

#Test service_max of 2
5438 on
	protocol = tcp,
	wait = no,
	user = root,
	service_max = 2,
	exec = test_server,
	args = test_server stream nowait;

#Test service_max of 0
5439 on
	protocol = tcp,
	wait = no,
	user = root,
	service_max = 0,
	exec = test_server,
	args = test_server stream nowait;