Hello,
I have a LXC container (managed by Proxmox VE) that have a dedicated IP (IP Failover at OVH.net).
I want to set a DNAT rule to transfer the traffic from one port to another container. (in order to create a SSH connection in the other container that doesn't have a public IP)
Code:
-A PREROUTING -i eth0 -p tcp -m tcp --dport 2102 -j DNAT --to-destination 192.168.1.10:22 # My other Container IP
-A POSTROUTING -s 192.168.1.0/24 -o eth1 -j SNAT --to-source 1.1.1.1 # My public IP
-A POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
But this is not working (I have an infinite delay when I try to connect through SSH.
The weird part is that if I set the same rule in the physical server, it's working.
Does anyone have an idea of what can I change to solve this issue ?
Thanks!
Tonio-