![]() |
Here's what I think. The outbound packets from the PC with the address 172.16.78.138 are being routed properly, and replies are coming in. The tcpdump session proved that. I'd say that proves the policy routing is actually working; the outbound packet is being processed by the right routing table.
The question is, why isn't the reply packet being routed back to 172.16.78.138? It can't be policy routing, as the packet doesn't match the criteria in the iptables fwmark rule, and shouldn't be subject to policy routing anyway. The way I see it, there are just three mechanisms that could prevent the packet from reaching 172.16.78.138:
I think you may be onto something when you suspect a kernel/iproute2/firewall bug. If the policy routing somehow conflicts with the iptables state engine, the reply packet may not match the state rules for ESTABLISHED or RELATED traffic. I believe it's possible to troubleshoot this further. How about adding a temporary rule to the top of the FORWARD chain in the filter table, like this: Code:
iptables -I FORWARD 1 -i eth0.666 -s 8.8.8.8 -d 172.16.78.138 -p icmp -j ACCEPT Could you try the ping test again with that rule in place? (There should be no risk of it disturbing network traffic, and it can be easily removed afterwards with iptables -D FORWARD 1.) |
I solved it ......finally it works
Hello
Finally after so much mess.....I was able to get solution after reading this https://access.redhat.com/site/solutions/53031 Actually in rhel6 value of /proc/sys/net/ipv4/conf/<interface>/rp_filter is an integer not a boolean and particularly in rhel 6 even if you do it "0" it defaults to strict filteration so.... In our implementation we have to use these two lines in syscyl.conf :: net.ipv4.conf.default.rp_filter = 2 net.ipv4.conf.all.rp_filter = 2 I shall be thankfull to the people out there who took so serious interest in my issue over here Best Regards Rahul Grover |
@Ser olmy
cat /proc/sys/net/ipv4/conf/eth0.666/rp_filter returns 0 why do we need to disable rp_filter here? i don't see asymmetric routing here |
All times are GMT -5. The time now is 03:48 AM. |