Community discussions

MikroTik App
 
rufinotereso
just joined
Topic Author
Posts: 1
Joined: Thu Oct 25, 2018 11:54 pm

Port mapping

Fri Oct 26, 2018 12:11 am

Hi, I´m trying to map three ports on an RB750 router but can´t get it to work. I have my network up and running, router uses 192.168.0.1, internet provider is cablemodem (dynamic public IP), I want to fordward all requests from WAN ports 80 and 54321 to a web and data server using 192.168.0.25; and port 5432 to another server using 192.168.0.26, tcp and udp protocols on both cases. I have tried https://wiki.mikrotik.com/wiki/Manual:I ... nation_NAT but it does not work.
 
User avatar
bramwittendorp
Member Candidate
Member Candidate
Posts: 101
Joined: Thu Jun 16, 2016 3:48 pm
Location: The Netherlands
Contact:

Re: Port mapping

Sat Oct 27, 2018 4:50 pm

Hi,

Could you post your config? There might be an issue with firewall configuration why traffic is dropped. Also: port 80 is used for webfig. In order to forward it towards a LAN-device it might be good practice to disbale the web-service under IP > Services.

Also, make sure you aren't double natted by the provider, as this might cause dropped traffic.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Port mapping

Sat Oct 27, 2018 7:36 pm

This should be enough (your outside interface may be other than ether1):
/ip firewall nat
add action=netmap chain=dstnat comment="Web" dst-port=80 in-interface=ether1 protocol=tcp to-addresses=192.168.0.25 to-ports=80
add action=netmap chain=dstnat comment="54321" dst-port=54321 in-interface=ether1 protocol=tcp to-addresses=192.168.0.26 to-ports=80

Who is online

Users browsing this forum: ShindigNZ and 68 guests