Skip to content

Commit 6d88680

Browse files
committed
firewall3: remove unreachable rules
Do not accept unsolicited ICMP echo reply. It is implied by conntrack state from request already. cf openwrt/firewall4#44 Also exemplified by ipv4 ping rule Limit peer-to-peer ipsec to ipv6 only as stated in original "ipv6 cpe requirements" cf openwrt/firewall4#65 Signed-off-by:
1 parent 9323ed5 commit 6d88680

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package/network/config/firewall/files/firewall.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ config rule
8282
option src wan
8383
option proto icmp
8484
list icmp_type echo-request
85-
list icmp_type echo-reply
8685
list icmp_type destination-unreachable
8786
list icmp_type packet-too-big
8887
list icmp_type time-exceeded
@@ -103,7 +102,6 @@ config rule
103102
option dest *
104103
option proto icmp
105104
list icmp_type echo-request
106-
list icmp_type echo-reply
107105
list icmp_type destination-unreachable
108106
list icmp_type packet-too-big
109107
list icmp_type time-exceeded
@@ -114,18 +112,20 @@ config rule
114112
option target ACCEPT
115113

116114
config rule
117-
option name Allow-IPSec-ESP
115+
option name Allow-IPv6-IPSec-ESP
118116
option src wan
119117
option dest lan
120118
option proto esp
119+
option family ipv6
121120
option target ACCEPT
122121

123122
config rule
124-
option name Allow-ISAKMP
123+
option name Allow-IPv6-ISAKMP
125124
option src wan
126125
option dest lan
127126
option dest_port 500
128127
option proto udp
128+
option family ipv6
129129
option target ACCEPT
130130

131131
# allow interoperability with traceroute classic

0 commit comments

Comments
 (0)