On 02.08.21 14:29, Eric Shields | Mass Transit Honchkrow wrote:
*nat
-A PREROUTING -p tcp -m tcp --dport 587 -j DNAT --to-destination
172.16.101.1:587
-A PREROUTING -p tcp -m tcp --dport 465 -j DNAT --to-destination
172.16.101.1:465

so, you redirect all outgoing communication to ports 465/587 to IP
172.16.101.1

why? the DNAT is apparenly what makes it not work, SNAT (or MASQUERADE)
should be enough.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

Reply via email to