Stop whitelisting IGMP
This commit is contained in:
@@ -138,7 +138,7 @@ func handlePacket(pkt packet.Packet) {
|
|||||||
// pkt.RedirToNameserver()
|
// pkt.RedirToNameserver()
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// allow ICMP, IGMP and DHCP
|
// allow ICMP and DHCP
|
||||||
// TODO: actually handle these
|
// TODO: actually handle these
|
||||||
switch meta.Protocol {
|
switch meta.Protocol {
|
||||||
case packet.ICMP:
|
case packet.ICMP:
|
||||||
@@ -149,10 +149,6 @@ func handlePacket(pkt packet.Packet) {
|
|||||||
log.Debugf("accepting ICMPv6: %s", pkt)
|
log.Debugf("accepting ICMPv6: %s", pkt)
|
||||||
_ = pkt.PermanentAccept()
|
_ = pkt.PermanentAccept()
|
||||||
return
|
return
|
||||||
case packet.IGMP:
|
|
||||||
log.Debugf("accepting IGMP: %s", pkt)
|
|
||||||
_ = pkt.PermanentAccept()
|
|
||||||
return
|
|
||||||
case packet.UDP:
|
case packet.UDP:
|
||||||
if meta.DstPort == 67 || meta.DstPort == 68 {
|
if meta.DstPort == 67 || meta.DstPort == 68 {
|
||||||
log.Debugf("accepting DHCP: %s", pkt)
|
log.Debugf("accepting DHCP: %s", pkt)
|
||||||
|
|||||||
Reference in New Issue
Block a user