Community discussions

MikroTik App
 
mrirh
just joined
Topic Author
Posts: 24
Joined: Fri Jul 09, 2004 10:54 pm

port forwarding in WinBox

Thu Aug 23, 2007 11:05 pm

Hello,

I am try to do port forwarding, however without much luck. Using MikroTik RouterOS 2.9.11 and with most rules setup in the NAT section I can't set up a rule that works for example, using port 1022 on a public address (on the router) to route to port 22 on an internal address (on an internal server).

Many thanks in advance.

James
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: port forwarding in WinBox

Fri Aug 24, 2007 12:21 pm

/ip firewall nat add chain=dstnat action=dst-nat to-addresses=<inside ip> to-ports=22 dst-address=<outside ip> dst-port=1022 protocol=tcp
read here about nat:
http://www.mikrotik.com/testdocs/ros/2.9/ip/nat.php
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26975
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: port forwarding in WinBox

Fri Aug 24, 2007 2:26 pm

I think you should also use the opportunity of free upgrades, and upgrade to 2.9.45

http://wiki.mikrotik.com/wiki/Upgrading_RouterOS