Community discussions

MikroTik App
 
User avatar
anav
Forum Guru
Forum Guru
Topic Author
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Feature Request Multiple Mapping/Translation DST-NAT

Fri Sep 04, 2020 3:25 pm

The router OS does port redirecting very well, dead easy to change the incoming port number to a different port number before it hits the server.
What we are talking about is a contiguous range of ports remapped to a set of contiguous ports and multiple entries separated by commas remapped as well.

Current rules
1. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XXX protocol=tcp to addresses=192.168.0.ww (no translation)
2. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XXX protocol=tcp to addresses=192.168.0.ww to-ports=YYY (with translation)
3. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XXX,AXX,BXX,CXX protocol=tcp to addresses=192.168.0.ww (no translation)
4. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XX1-XX9 protocol=tcp to addresses=192.168.0.ww (no translation)

PROPOSED
5. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XXX, AXX, BXX, CXX protocol=tcp to addresses=192.168.0.ww to-ports=CFF, GHH, UJU (combo translation**)
**logical required mappings XXX to CFF, AXX to GHH, BXX to UJU. CXX is not re-mapped and remains CXX but need not be stated

6. add chain=dstnat action=dst-nat dst-address=wanip dst-port=XX1-XX9, BXX, CXX protocol=tcp to addresses=192.168.0.ww to-ports=TR1-TR9, KLK
***logical required mapping XX1-XX9 to TR1-TR9 (and yes XX1 to TR1, XX2 to TR2 and so forth, BXX to KLK, CXX is not re-mapped and remains CXX but need not be stated ]

Who is online

Users browsing this forum: No registered users and 29 guests