Community discussions

MikroTik App
 
josiane1290
just joined
Topic Author
Posts: 7
Joined: Thu Jul 09, 2015 4:44 pm

port fowarding

Thu Jul 09, 2015 5:14 pm

Port Forwarding
hello,
Excuse my English I am French, I work on a mikrotik router and I'd like to configure port forwarding, here is the command I NEW CAL / ip firewall nat add chain = protocol = tcp dstnat dst-port = 223 in interface = pppoe \
     action = dst-nat to-addresses = 172.16.120.20 to-ports = 80
but it does not work, or I sin

thank you in advance
 
Van9018
Long time Member
Long time Member
Posts: 558
Joined: Mon Jun 16, 2014 6:26 pm
Location: Canada - Abbotsford

Re: port fowarding

Fri Jul 10, 2015 11:07 pm

Looks correct. Your rule says to forward packets destined to your PPPOE ip on port 223 to go to 172.16.120.20:80

In Winbox and Webfig in IP > Firewall you can view the packet statistics, every time a connection comes in, the packet count goes up.


From:
http://wiki.mikrotik.com/wiki/Forwardin ... nternal_IP
----------------------------------------------------------------------------------------------------------
Forwarding a port to an internal IP

This example will show you how to forward port (tcp 5900) to an internal IP using destination NAT. 69.69.69.69 is the example wan IP, 192.168.1.101 is the desired internal destination.

/ip firewall nat add chain=dstnat dst-address=69.69.69.69 protocol=tcp dst-port=5900 action=dst-nat to-addresses=192.168.1.101 to-ports=5900
----------------------------------------------------------------------------------------------------------

Who is online

Users browsing this forum: Bing [Bot], eworm, GoogleOther [Bot], Kraken2k, svh79 and 101 guests