Community discussions

MikroTik App
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

CCTV DVR Port Forwarding  [SOLVED]

Sat Sep 29, 2018 12:01 am

Hi Guys!

I'm new here in this forum.
I'm just need some help guys.
Regarding cctv port forwarding..
How can I open port for cctv, because as I checked from the port checker website, my port for cctv is closed. How can I open a port?
I'm using mikrotik router. Should I open the port from the ISP?
Sorry I'm new in networking.

Thanks a lot in advance!
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: CCTV DVR Port Forwarding

Sat Sep 29, 2018 3:23 pm

Until your router is not accessible from the Internet on required port, you need to talk to your isp. If it is, read this.

https://wiki.mikrotik.com/wiki/Manual:I ... FTP_server

.. And dst nat above. Don't forget to accept the redirected packets.
 
User avatar
ingdaka
Trainer
Trainer
Posts: 452
Joined: Thu Aug 30, 2012 3:06 pm
Location: Albania
Contact:

Re: CCTV DVR Port Forwarding

Sat Sep 29, 2018 9:36 pm

ip firewall nat add chain=dstnat dst-address=your-public-ip-address protocol=tcp dst-port=external-port action=dst-nat to-
addresses=your-dvr-ip to-ports=your-dvr-port

This will work if you have and Public IP Address on WAN offered by ISP!
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: CCTV DVR Port Forwarding

Sun Sep 30, 2018 6:57 pm

ip firewall nat add chain=dstnat dst-address=your-public-ip-address protocol=tcp dst-port=external-port action=dst-nat to-
addresses=your-dvr-ip to-ports=your-dvr-port

This will work if you have and Public IP Address on WAN offered by ISP!
Hi,
I checked the 8080 port is open. Now, this is my cctv network config:
CCTV IP Static: 192.168.9.120
Server Port: 8000
HTTP Port: 8080
---
CCTV Port Forwarding in Mikrotic Router:
IP>Firewall>NAT
Chain: dstnat
Dst. Address: my Public IP
Protocol: tcp
Dst. Port: 8000
---
Action: dst-nat
To Addresses: 192.168.9.120 (My CCTV IP)
To Ports: 8000
---
Still can't access outside.
Btw, what is "External Port?"

Thanks for replying Sir.
 
User avatar
ingdaka
Trainer
Trainer
Posts: 452
Joined: Thu Aug 30, 2012 3:06 pm
Location: Albania
Contact:

Re: CCTV DVR Port Forwarding

Sun Sep 30, 2018 8:53 pm

Config is OK, but 8000 is port for access by DVR software not from WEB interface, you need to configure 8080 port to on the same way as you have configured 8000! You need masquerade role too! If you have problems, please go to terminal and type export, and paste the results here!
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: CCTV DVR Port Forwarding

Mon Oct 01, 2018 11:01 am

Config is OK, but 8000 is port for access by DVR software not from WEB interface, you need to configure 8080 port to on the same way as you have configured 8000! You need masquerade role too! If you have problems, please go to terminal and type export, and paste the results here!
Hi,
Same configuration of Port 8000 and 8080.

CCTV Server and HTTP Port Forwarding in Mikrotic Router:
IP>Firewall>NAT
Chain: dstnat
Dst. Address: my Public IP
Protocol: tcp
Dst. Port: 8080 and 8000
---
Action: dst-nat
To Addresses: 192.168.9.120 (My CCTV IP)
Dst. Port: 8080 and 8000
---
I can access my CCTV with my Public IP using HIKVision apps for windows/Mobile and WEB as well.

But using internet outside the network, I can't access both.

Appreciate your assistance Sir.

Thank you and regards
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: CCTV DVR Port Forwarding

Mon Oct 01, 2018 12:11 pm

Your ISP router needs to forward these two ports to the Mikrotik router.
I assume that your connection is : Internet -> ISP router (in router mode) -> Mikrotik router.

so untill these ports are forwared on the ISP router, you won't be able to access the DVR from the Internet.
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: CCTV DVR Port Forwarding

Mon Oct 01, 2018 12:41 pm

Your ISP router needs to forward these two ports to the Mikrotik router.
I assume that your connection is : Internet -> ISP router (in router mode) -> Mikrotik router.

so untill these ports are forwared on the ISP router, you won't be able to access the DVR from the Internet.
Hi Sir,
I can access my dvr now. Now, I have a lot of dvr device, how can I put or access all my dvr?

Should I configure my dvr like these and to my router??

Please see below configuration:

CCTV IP Static: 192.168.9.120 to 192,168.9.129
Server Port: 8000 to 8009
HTTP Port: 8080 to 8089
---
CCTV Port Forwarding in Mikrotic Router:
IP>Firewall>NAT
Chain: dstnat
Dst. Address: my Public IP
Protocol: tcp
Dst. Port: 8000 to 8009 and 8080 to 8089
---
Action: dst-nat
To Addresses: 192.168.9.120 to 192.168.9.129 (My CCTV IP)
To Ports: 8000 to 8009 and 8080 to 8089
---

Thank you for replying my post Sir. Appreciate it!
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: CCTV DVR Port Forwarding

Mon Oct 01, 2018 1:56 pm

Hi everyone!

I can able to access from outside of my network of my 4 DVR devices (HIKVision brand).

This now SOLVED.

Thank you in advance Sirs!
Last edited by katopz24 on Tue Oct 09, 2018 5:02 pm, edited 2 times in total.
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: CCTV DVR Port Forwarding

Sat Oct 06, 2018 12:42 pm

SOLVED!
- CLOSED -

Who is online

Users browsing this forum: anav, ArrowTek, CGGXANNX, GoogleOther [Bot], lurker888, Techsystem and 46 guests