Since the isp i use blocks port 25, i wanted to foward all traffic going out on port 25 to 2525.
I can get this to work with a nat rule with action netmap → an IP addy and port 2525. (works for me but not for clients that may go to ANY smtp server.)
If i set the action to redirect and the port to 2525 it does not go through at all.
Thanks for the response, but i have a folow up question (ive read the manual too):
I have a nat rule that i can see grabs the clients port 25 smtp packets (I have the rule’s action set to (“redirect” or dst-nat or src-nat) and the port value: 2525)
Do i need to set up rules to accept and re direct the packets coming back on port 2525?
I ask because i still cant get mail clients that are set to default of port 25 to be redirected to 2525 (if ever i manully set the client to use 2525 it works, mail sends)
I’m not sure I understand what you want to achieve. If your want to dst-nat every outgoing SMTP connection so that just the dst-port is changed to 2525 (and the destination address is leaved unchanged), you would have to use
The reason wanted to do this is my ISP BLOCK port 25 outgoing. So allowing my customers to use port 25 for smtp is pointless as their packet will get dropped anyway.
Some smtp servers support 2525 so its worth a shot..lets put it this way ive gotten 2 support calls from ppl who could not send email, and one of them was resovled by switching the client port to 2525..so i guess this would have fixed that before they called.
I put a non-zero IP address in the field “To Addresses” and this time it worked, but what I really need is to change the port in the IP packet leaving the IP address unchanged.