MikroTik NAT Routing and Port Forwarding

francoislr

Expert Member
Joined
Apr 17, 2008
Messages
1,190
Reaction score
3
Location
Pretoria
I am having trouble forwarding a port from a CCTV device to the internet. The setup is as following:

Netgear router with port 1234(example port) forwarded. IP Address 192.168.20.1
|
MikroTik 750
IP Address where it connects to the Netgear: 192.168.20.2
IP Address where it connects to the network: 10.0.0.254
|
CCTV Camera System:
10.0.0.100

I have tried every guide on port forwarding on the MikroTik, but the port forwarding website still says Closed.

Any ideas how I can do this?
 
I assume you want to access the CCTV device from the internet and that the Netgear router is your adsl router? I also assume that it is your adsl router that dials the internet and not the RB750.

You will have to forward port 1234 from the netgear router to port 192.168.20.2 port 1234.

You will have to add a dst-nat rule on the rb750 to port forward port 1234 to 10.0.0.100 .
/ip firewall nat add chain=dstnat dst-address=192.168.20.2
dst-port=1234 protocol=tcp to-addresses=10.0.0.100 to-ports=1234

you will also have to add a masquarade rule.
/ip firewall nat add chain=srcnat src-address=10.0.0.100 action=masquerade

Hope this helps.
 
Hi Dade, Thanks for your reply. I did try these rules, and the firewall log on the Netgear was fine, and there was some dataflow on those rules when trying to access the CCTV, but no luck. Maybe the router needs clearing and resetting. For now I will maybe work on a workaround. I will instruct the CCTV guy to plug the CCTV port straight into the Netgear. Maybe just better that way. Messing with the rules that are already there might just cause problems. I have played around with so many variations and tried a lot of other suggestions and instructions on other forums/wikis.

Thanks again man, much appreciated!
 
Top
Sign up to the MyBroadband newsletter
X