Hi! I’ve a particular situation, the target has a different gateway, if I simply use the dstnat the packet (which source IP still the internet one) goes to target, but target will reply using its gateway. I need to add a srcnat too, to use for example the router source.. how can I combine both keeping work on the same socket?
For example:
internet host has 1.1.1.1
Router has 2.2.2.2, and LAN 192.168.1.2
target host has 192.168.1.3 and gateway 192.168.1.1
If I create a dstnat for destination 2.2.2.2 on port 80 to 192.168.1.3:80 and a srcnat for source 2.2.2.2 with destination port 80 and srcnat with 192.168.1.2.. should it work?