Hello!,
So currently I was reading some use cases about port mirroring and IDS systems and then wondered if this was also possible to mirror over a vlan so I can have a easily encapisulated way of getting read only access towards a orange pi, I learned that I need to use the tc command for this.
Currently I have a Flint 2 but when I tried the suggested commands by Google AI it seems I need to enable some kernel modules, but I was not able to find them ![]()
What I'm looking for all modules like:
CONFIG_NET_CLS_* for mirred and filter and a few other names I used * for this.
Is this supported in the OpenWrt kernel by enabling in the diffconfig?, when I search CLS in make menuconfig I can't find anything to these kernel values
, are they in some package?
Edit this was the code I was looking to not sure if it makes sense by the Ai I need to rewrite it for eth1:
# 1. Add the ingress filter to mirror incoming traffic
tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 action mirred egress mirror dev br-lan.10
# 2. Add the egress filter to mirror outgoing traffic
tc qdisc add dev eth0 root handle 1: htb
tc filter add dev eth0 parent 1: protocol all u32 match u32 0 0 action mirred egress mirror dev br-lan.10
But it says illegal action on mirred further searches told me I need modules enabled (compile them in my OpenWrt build).