From bd681cd01fc514ac9ffb84b52ac62b46a978debd Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Tue, 18 Aug 2020 15:22:58 +0200 Subject: [PATCH] Update MaxPackageLen to be a bit bigger than default MTU --- firewall/interception/nfqexp/nfqexp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/interception/nfqexp/nfqexp.go b/firewall/interception/nfqexp/nfqexp.go index c6ae36a7..aa8cc451 100644 --- a/firewall/interception/nfqexp/nfqexp.go +++ b/firewall/interception/nfqexp/nfqexp.go @@ -35,7 +35,7 @@ func New(qid uint16, v6 bool) (*Queue, error) { } cfg := &nfqueue.Config{ NfQueue: qid, - MaxPacketLen: 0xff, + MaxPacketLen: 1600, // mtu is normally around 1500, make sure to capture it. MaxQueueLen: 0xffff, AfFamily: uint8(afFamily), Copymode: nfqueue.NfQnlCopyPacket,