diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2020-04-27 18:52:51 -0600 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2020-05-21 20:23:10 +0200 |
commit | de8b88ce17c3e19cf1fe366be0de2e3c376762b0 (patch) | |
tree | fe89c28370c9d0933f8b2b13e0fc0d3cda0bb1fb | |
parent | bc552584640eba0bd428b70f724640a8fe9ceca2 (diff) | |
download | upstream-de8b88ce17c3e19cf1fe366be0de2e3c376762b0.tar.gz upstream-de8b88ce17c3e19cf1fe366be0de2e3c376762b0.tar.bz2 upstream-de8b88ce17c3e19cf1fe366be0de2e3c376762b0.zip |
firewall: add rule for traceroute support
Running your firewall's "wan" zone in REJECT zone (1) exposes the
presence of the router, (2) depending on the sophistication of
fingerprinting tools might identify the OS and release running on
the firewall which then identifies known vulnerabilities with it
and (3) perhaps most importantly of all, your firewall can be
used in a DDoS reflection attack with spoofed traffic generating
ICMP Unreachables or TCP RST's to overwhelm a victim or saturate
his link.
This rule, when enabled, allows traceroute to work even when the
default input policy of the firewall for the wan zone has been
set to DROP.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
-rw-r--r-- | package/network/config/firewall/files/firewall.config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/config/firewall/files/firewall.config b/package/network/config/firewall/files/firewall.config index 8874e9882c..5e22f984ce 100644 --- a/package/network/config/firewall/files/firewall.config +++ b/package/network/config/firewall/files/firewall.config @@ -129,6 +129,19 @@ config rule option proto udp option target ACCEPT +# allow interoperability with traceroute classic +# note that traceroute uses a fixed port range, and depends on getting +# back ICMP Unreachables. if we're operating in DROP mode, it won't +# work so we explicitly REJECT packets on these ports. +config rule + option name Support-UDP-Traceroute + option src wan + option dest_port 33434:33689 + option proto udp + option family ipv4 + option target REJECT + option enabled false + # include a file with users custom iptables rules config include option path /etc/firewall.user |