You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the af_packet code from gopacket never puts the interface in promiscuous mode, which results in Packetbeat not seeing any packets when using mirror ports. The workaround is simple, make sure to run this command before starting packetbeat:
ip link set enp5s0f1 promisc on
We should try to do the same programmatically from the af_packet code, so this is no longer required.
The text was updated successfully, but these errors were encountered:
My workaround for this issue was to have systemd put the interface into promisc before it starts the service and stop it afterwards.
ip a
mkdir -p /etc/systemd/system/packetbeat.service.d
cat << EOF >> /etc/systemd/system/packetbeat.service.d/local.conf
[Service]
ExecStartPre=/sbin/ip link set dev eth0 promisc on
ExecStopPost=/sbin/ip link set dev eth0 promisc off
EOF
systemctl daemon-reload
systemctl restart packetbeat
ip a
It seems that the af_packet code from gopacket never puts the interface in promiscuous mode, which results in Packetbeat not seeing any packets when using mirror ports. The workaround is simple, make sure to run this command before starting packetbeat:
We should try to do the same programmatically from the af_packet code, so this is no longer required.
The text was updated successfully, but these errors were encountered: