From a91a40212db536b1239ff09079713000d44454d1 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Fri, 21 Feb 2020 16:49:54 -0800 Subject: [PATCH] check that packet isn't bound for my vpn ip (#192) --- inside.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inside.go b/inside.go index 6930035..d2cd7e6 100644 --- a/inside.go +++ b/inside.go @@ -19,6 +19,11 @@ func (f *Interface) consumeInsidePacket(packet []byte, fwPacket *FirewallPacket, return } + // Ignore packets from self to self + if fwPacket.RemoteIP == f.lightHouse.myIp { + return + } + // Ignore broadcast packets if f.dropMulticast && isMulticast(fwPacket.RemoteIP) { return