Community discussions

MikroTik App
 
redax
just joined
Topic Author
Posts: 10
Joined: Thu Feb 23, 2006 1:24 am
Location: Hungary

Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 11:08 am

hi,

our Cable provider blocked the TCP/25 ports. thus I added the TCP/26 to our co-located SMTP server.

I'd like to redirect every Masqueraded outgoing packet which goes to TCP/25 to be rewrited to TCP/26

Please help me :-|

Yours,
Redax
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 2:04 pm

/ip firewall nat add chain=dstnat proto=tcp dst-port=25 action=dstnat to-ports=26
 
redax
just joined
Topic Author
Posts: 10
Joined: Thu Feb 23, 2006 1:24 am
Location: Hungary

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 3:29 pm

/ip firewall nat add chain=dstnat proto=tcp dst-port=25 action=dstnat to-ports=26
That's what I've tried, before I posted my question, I added the in-interface as well.
Not Working.

Although if I specify the to-address=IP_address as well then it works well.
in this case every port25 traffic is nat'ed to the IP_address:26

but I don't want to rewrite the IPaddress, Just the port.

Regards,
Redax
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 3:53 pm

what version do you use?
 
redax
just joined
Topic Author
Posts: 10
Joined: Thu Feb 23, 2006 1:24 am
Location: Hungary

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 4:03 pm

what version do you use?

3.10, shall I upgrade?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 4:08 pm

What's new in 3.11:

*) added ability to dst. nat only address or port, not both at the same time;
 
redax
just joined
Topic Author
Posts: 10
Joined: Thu Feb 23, 2006 1:24 am
Location: Hungary

Re: Masquerade + redirect tcp/25 to tcp/26 howto?

Mon Oct 13, 2008 4:17 pm

What's new in 3.11:

*) added ability to dst. nat only address or port, not both at the same time;
ehh. :lol:
Thank you for your help,

Regards,
Redax