]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - share/man/man4/blackhole.4
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / share / man / man4 / blackhole.4
1 .\"
2 .\" blackhole - drop refused TCP or UDP connects
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\"
14 .\" $FreeBSD$
15 .Dd January 1, 2007
16 .Dt BLACKHOLE 4
17 .Os
18 .Sh NAME
19 .Nm blackhole
20 .Nd a
21 .Xr sysctl 8
22 MIB for manipulating behaviour in respect of refused TCP or UDP connection
23 attempts
24 .Sh SYNOPSIS
25 .Cd sysctl net.inet.tcp.blackhole[=[0 | 1 | 2]]
26 .Cd sysctl net.inet.udp.blackhole[=[0 | 1]]
27 .Sh DESCRIPTION
28 The
29 .Nm
30 .Xr sysctl 8
31 MIB is used to control system behaviour when connection requests
32 are received on TCP or UDP ports where there is no socket listening.
33 .Pp
34 Normal behaviour, when a TCP SYN segment is received on a port where
35 there is no socket accepting connections, is for the system to return
36 a RST segment, and drop the connection.
37 The connecting system will
38 see this as a
39 .Dq Connection refused .
40 By setting the TCP blackhole
41 MIB to a numeric value of one, the incoming SYN segment
42 is merely dropped, and no RST is sent, making the system appear
43 as a blackhole.
44 By setting the MIB value to two, any segment arriving
45 on a closed port is dropped without returning a RST.
46 This provides some degree of protection against stealth port scans.
47 .Pp
48 In the UDP instance, enabling blackhole behaviour turns off the sending
49 of an ICMP port unreachable message in response to a UDP datagram which
50 arrives on a port where there is no socket listening.
51 It must be noted that this behaviour will prevent remote systems from running
52 .Xr traceroute 8
53 to a system.
54 .Pp
55 The blackhole behaviour is useful to slow down anyone who is port scanning
56 a system, attempting to detect vulnerable services on a system.
57 It could potentially also slow down someone who is attempting a denial
58 of service attack.
59 .Sh WARNING
60 The TCP and UDP blackhole features should not be regarded as a replacement
61 for firewall solutions.
62 Better security would consist of the
63 .Nm
64 .Xr sysctl 8
65 MIB used in conjunction with one of the available firewall packages.
66 .Pp
67 This mechanism is not a substitute for securing a system.
68 It should be used together with other security mechanisms.
69 .Sh SEE ALSO
70 .Xr ip 4 ,
71 .Xr tcp 4 ,
72 .Xr udp 4 ,
73 .Xr ipf 8 ,
74 .Xr ipfw 8 ,
75 .Xr pfctl 8 ,
76 .Xr sysctl 8
77 .Sh HISTORY
78 The TCP and UDP
79 .Nm
80 MIBs
81 first appeared in
82 .Fx 4.0 .
83 .Sh AUTHORS
84 .An Geoffrey M. Rehmet