Handle ICMP/v6 echo regularly

This commit is contained in:
Daniel
2021-06-01 12:54:22 +02:00
parent 6141066252
commit 525687a30b
2 changed files with 29 additions and 19 deletions

View File

@@ -145,7 +145,7 @@ func (pkt *packet) PermanentAccept() error {
}
func (pkt *packet) PermanentBlock() error {
if pkt.Info().Protocol == pmpacket.ICMP {
if pkt.Info().Protocol == pmpacket.ICMP || pkt.Info().Protocol == pmpacket.ICMPv6 {
// ICMP packets attributed to a blocked connection are always allowed, as
// rejection ICMP packets will have the same mark as the blocked
// connection. This is why we need to drop blocked ICMP packets instead.