Hi! I have a problem with my dvr! I can acces it from my network with username and password but when i try to login from otside,my dvr replay me a message thet says:“cant login,try again!”. Im using a mikrotik routerOS. port forwording works but i dont know if i have to do something else! my script is:
only from port 80 my router nated me to dvr,if i change this port i cant acces it from outside
My dvr has:
3357->control port
3356->udp port
80-> http port
Thankyou!
Is it possible the DVR only allows access from the local network? If so add another NAT rule in source NAT with a masquerade action so the DVR thinks the traffic comes from the router itself.
Don’t forget defaul ip service www. is port 80, example if your dvr ip is 192.168.1.10 http port have you cange to port 1700 try to
/ip firewall nat add chain=dstnat dst-address=xxx(your ip public static) protocol=tcp dst-port=1700 action=192.168.1.10 to-port=1700
to connecting your dvr from another ip public is xxx:1700
that’s my configuration in my dvr network with RB750G
thnx 4 your replay. I have tryed that configuration but i it dident worked…i think is somthing else i have to do. something with firewoll to allow the trasmition of password… if i dont specify a port 4 exp:
/ip firewall nat add chain=dstnat dst-address=x.x.x.x protocol=tcp
action=dst-nat to-addresses=dvr ip
yes i can log in but i dont wont this because i cant acces my mikrotik…!!!
I mean default ip service www. is 80 so change to… (up to you,maybe port 80 change to 99) because that ip for your router mikrotik. You can still login webfig with your ip public xxx.xxx.xx.xx:99
If you want several ip to connect your dvr just:
/ip firewall nat add chain=dstnat src-address=just ip do you want (may be 100.10.100.1-100.10.100.5) protocol=tcp dst-address=(your ip public static) action=dst-nat to-addreses=your ip dvr
sorry
/ip firewall nat add chain=dstnat src-address=just ip do you want (may be 100.10.100.1-100.10.100.5) protocol=tcp dst-address=(your ip public static) dst-port=1700 action=dst-nat to-addreses=your ip dvr
If your dvr H.264 model for secure run pppoe client & your mikrotik router set pppoe-server with limit only one=yes,use encryption=yes change tcp mss=yes.
than set configuration nat
/ip firewall nat add chain=srcnat src-address=up to you (may be 200.200.200.1) out-interface=your dial ISP action=masquerade
yaaaa… you can login dvr but not to your router, becouse hhtp port dvr=80, http port default router mikrotik 80. Sooo… change http port mikrotik, login winbox IP>>>Service http default 80 change to 81 (or up to you). I’m sure you can login your router & dvr.