I'm working with a
tc
filter setup and I have the following configuration:
> sudo tc qdisc add dev eth0 handle ffff: ingress \
> sudo tc filter add dev eth0 parent ffff: protocol ip prio 1 flower ip_proto icmp src_ip 10.0.0.5 action mirred egress redirect dev tun0
This is what I expect from the setup: I want to forward ICMP traffic from a specific source IP (10.0.0.5) arriving at eth0 to the tun0 interface. Similarly, I expect traffic on tun0 destined to eth0 to be forwarded correctly.
However, I'm experiencing an issue where traffic from eth0 to tun0 flows as expected, but traffic from tun0 that should be forwarded to eth0 is not working. tun0 receives packets that should be sent to eth0, but they don't get forwarded.
I have tested this configuration on other devices, and it works correctly in both directions, so I'm puzzled about why it fails here.
Could someone help me understand what might be happening? Also, how can I troubleshoot this issue more effectively to observe what exactly is going wrong in the packet forwarding process?
Thanks in advance for your insights!
Asked by Andy R
(1 rep)
Feb 3, 2025, 12:37 PM