Community discussions

MikroTik App
 
sarky
newbie
Topic Author
Posts: 37
Joined: Wed Jun 30, 2004 3:32 am

Masquerading Local IP to Mailserver

Thu Mar 10, 2005 1:43 am

Hello all

Trying to figure out how to make all Ips trying to send mail to SMTP from local ip 10.10.10.0/24 to masquerade it to a real IP how do i do that??

Thank you

Sarky
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Thu Mar 10, 2005 11:31 am

The following command should do it:
ip firewall src-nat add src-address=10.10.10.0/24 dst-port=25 protocol=tcp out-interface=uplink action=masquerade
Replace the uplink with the interface name of your internet uplink, like ether1 or whatever you have...
 
sarky
newbie
Topic Author
Posts: 37
Joined: Wed Jun 30, 2004 3:32 am

Sat Mar 12, 2005 11:49 pm

Thanks for the reply but now if the AP masquerades it, it will masq to its local IP too.

i am trying to change all my network to Use Fake IP just servers to use Real IP, if i open SMTP to take email from Fake IP some mail servers out somewhere will bounce them because those mail are originating from FAKE.

SArky