Community discussions

MikroTik App
 
User avatar
hossain2004a
Member Candidate
Member Candidate
Topic Author
Posts: 247
Joined: Mon Dec 22, 2014 7:34 pm
Location: Iran

CCTV Port forwarding [SOLVED]

Tue Mar 17, 2015 7:35 am

Hi guys.
I was wondering if someone can help me.
I'm able to open my office router page in home by entering DNS page and right port number.
no problem, I can open my webfig and UM page via remote computer.
The problem is to open DVR or CCTV's page.
If I'm gonna open my CCTV's page over my local network I will enter:
192.168.20.123
and when I enter user and password i can access my CCTVs.

for port forwarding I will forward my 9876 port to my cctv's address and port 80.
so by entering:
mydnsname.net:9876 i will redirect to my cctv. and you should know my DVR is using port: 8000 to transmit data over network.
the problem is here that when i enter user and password it says:
Get data from server failed.

so I forward 8000 port to my cctv's address and port 80. after that:

Not enough buffer size

So can anyone tell me how to forward right ports and is there anything i'm missing?
Last edited by hossain2004a on Tue Mar 17, 2015 8:13 am, edited 1 time in total.
 
rajeshrouthu
newbie
Posts: 46
Joined: Sun Jun 22, 2008 10:30 am

Re: CCTV Port forwarding

Tue Mar 17, 2015 8:02 am

Bro,
Follow the Steps you need add the same for rstp and mobile dst ports.

chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=80 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=8082 (http)

chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=554 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=554 (Rtsp)

chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=8000 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=8000 (Mobile)


Rajesh R
 
User avatar
hossain2004a
Member Candidate
Member Candidate
Topic Author
Posts: 247
Joined: Mon Dec 22, 2014 7:34 pm
Location: Iran

Re: CCTV Port forwarding

Tue Mar 17, 2015 8:13 am

That's great.
Thanks for quick reply Rajesh :D

All you need is to forward 2 ports:
1 of them to you CCTV (xxxx to 80)
another one to the port which is transmitting (8000 to 8000)
 
rajeshrouthu
newbie
Posts: 46
Joined: Sun Jun 22, 2008 10:30 am

Re: CCTV Port forwarding [SOLVED]

Tue Mar 17, 2015 8:33 am

Yes,
RTSP Port Also needed to stream the content.
 
erikalittaua
just joined
Posts: 1
Joined: Wed Nov 08, 2017 8:51 am

Re: CCTV Port forwarding [SOLVED]

Wed Nov 08, 2017 8:56 am

Hi

I have two CCTV devices on two different IP (192.168.0.10 and 192.168.0.20)

I followed Rajesh's sample below:
chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=80 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=8082 (http)
chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=554 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=554 (Rtsp)
chain=dstnat action=dst-nat to-addresses=172.168.100.145 to-ports=8000 protocol=tcp dst-address=202.x.x.x in-interface=WAN dst-port=8000 (Mobile)

This works fine but I have another device so I am not sure if I should use the same port?

192.168.0.20 uses 8000 port thats why I can follow the code above
192.168.0.20 uses 7000 port so how do i configure its dst nat?

Thanks

Who is online

Users browsing this forum: infabo, pellerb, subnet and 156 guests