blob: 174bf7b3488061722d34e16675b192f02193a3bf [file] [log] [blame]
Henrik Nordstromc2794132004-01-22 15:04:24 +00001This is used to send back an error packet in response to the matched
2packet: otherwise it is equivalent to
3.B DROP
4so it is a terminating TARGET, ending rule traversal.
5This target is only valid in the
6.BR INPUT ,
7.B FORWARD
8and
9.B OUTPUT
10chains, and user-defined chains which are only called from those
11chains. The following option controls the nature of the error packet
12returned:
13.TP
14.BI "--reject-with " "type"
15The type given can be
16.nf
17.B " icmp-net-unreachable"
18.B " icmp-host-unreachable"
19.B " icmp-port-unreachable"
20.B " icmp-proto-unreachable"
21.B " icmp-net-prohibited"
22.B " icmp-host-prohibited or"
23.B " icmp-admin-prohibited (*)"
24.fi
25which return the appropriate ICMP error message (\fBport-unreachable\fP is
26the default). The option
27.B tcp-reset
28can be used on rules which only match the TCP protocol: this causes a
29TCP RST packet to be sent back. This is mainly useful for blocking
30.I ident
31(113/tcp) probes which frequently occur when sending mail to broken mail
32hosts (which won't accept your mail otherwise).
33.TP
Henrik Nordstromc2794132004-01-22 15:04:24 +000034(*) Using icmp-admin-prohibited with kernels that do not support it will result in a plain DROP instead of REJECT