suppress ipv6 noise between veth interfaces
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 10s
This commit is contained in:
@@ -491,6 +491,15 @@ def _sync_bridge_telemetry() -> None:
|
|||||||
logger.exception("Failed to update bridge telemetry collector")
|
logger.exception("Failed to update bridge telemetry collector")
|
||||||
|
|
||||||
|
|
||||||
|
def _managed_capture_ifaces() -> set[str]:
|
||||||
|
return {
|
||||||
|
iface
|
||||||
|
for session in sessions.values()
|
||||||
|
if session.get("is_bridge")
|
||||||
|
for iface in session.get("capture_ifaces", [])
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# Per-session reader loop
|
# Per-session reader loop
|
||||||
# -------------------------
|
# -------------------------
|
||||||
@@ -570,6 +579,9 @@ def _session_reader_loop(session_id: str) -> None:
|
|||||||
packet_bytes = raw
|
packet_bytes = raw
|
||||||
if settings.capture_header_enabled:
|
if settings.capture_header_enabled:
|
||||||
capture_meta, packet_bytes = parse_capture_header(raw)
|
capture_meta, packet_bytes = parse_capture_header(raw)
|
||||||
|
if capture_meta is None and iface in _managed_capture_ifaces():
|
||||||
|
logger.debug("Skipping unshimmed packet on managed capture interface %s", iface)
|
||||||
|
continue
|
||||||
pkt = Ether(packet_bytes)
|
pkt = Ether(packet_bytes)
|
||||||
pkt.sniffed_on = iface
|
pkt.sniffed_on = iface
|
||||||
parse_packet(pkt, label, capture_metadata=capture_meta)
|
parse_packet(pkt, label, capture_metadata=capture_meta)
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ fi
|
|||||||
|
|
||||||
ip link set "$MIRROR_IF" up
|
ip link set "$MIRROR_IF" up
|
||||||
ip link set "$CAPTURE_IF" up
|
ip link set "$CAPTURE_IF" up
|
||||||
|
sysctl -q -w "net.ipv6.conf.$MIRROR_IF.disable_ipv6=1" >/dev/null || true
|
||||||
|
sysctl -q -w "net.ipv6.conf.$CAPTURE_IF.disable_ipv6=1" >/dev/null || true
|
||||||
|
|
||||||
mapfile -t PORTS < <(bridge link show master "$BRIDGE" | awk -F': ' '{print $2}' | awk '{print $1}')
|
mapfile -t PORTS < <(bridge link show master "$BRIDGE" | awk -F': ' '{print $2}' | awk '{print $1}')
|
||||||
if [[ ${#PORTS[@]} -eq 0 ]]; then
|
if [[ ${#PORTS[@]} -eq 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user