I have several Almalinux 8.10 VMs with 2 network interfaces, eth0 with a public IP and eth1 with a private IP(all VMs sharing the same private subnet).
I have a use case for example to be able to reach server B public IP from server A private IP interface passing through server B private interface.
I have the necessary routing command set in place and net.ipv4.ip_forward=1 and net.ipv4.conf.all.rp_filter=0 set. The same configuration has worked on Centos 7 machines (This was applied on many projects I worked on) but not Almalinux 8.
When trying to test the connection using a ping command, I can see that the requests are being received by server B and it is responding (tcpdump on the private interface of server B showing the received echo requests and replies) however the traffic is never received back on server A.
The same scenario above happens for example when I have a server B with a VPN configured on to connect to a remote site so the traffic from server A that is routed through server B machine to reach the remote site has the same behavior where echo and reply requests are received on server B but not forwarded back to its origin on server A.
So the question here what is the possible difference in the networking side between Centos 7 and Almalinux 8 that is preventing this communication from happening?