• MikroTik.com
  • RouterBOARD
  • User Meeting
  • Training
  • User Manual
  • Support
  • Downloads
  • Videos
Register |   * Login | HOME

View unanswered posts | View active topics

DVR outside network access  Page 1 of 1
 [ 5 posts ]  Post new topic Reply to topic
  Print view Previous topic | Next topic 
Author Message
benmikrotik
 Post subject: DVR outside network access
PostPosted: Tue Jul 27, 2010 7:35 am 
Offline
Frequent Visitor
Frequent Visitor

Joined: Mon Apr 26, 2010 4:12 am
Posts: 62
Karma: 0
Hi,

How do I port forward to be able to access my DVR from outside the network. I could access it through LAN but not outside.

port tcp 34567
udp 34568
http 80

DVR IP 192.168.1.100
ISP's IP assigned to my WAN is 124.XXX.XXX.XXX


Top
 Profile  
 
blake
 Post subject: Re: DVR outside network access
PostPosted: Tue Jul 27, 2010 7:55 am 
Offline
Member
Member

Joined: Mon May 31, 2010 9:46 pm
Posts: 423
Karma: 49

Location: Arizona
http://wiki.mikrotik.com/wiki/Manual:IP ... rt_mapping
Code:
/ip firewall nat
add chain=dstnat action=dst-nat protocol=tcp dst-address=124.XXX.XXX.XXX dst-port=80 to-addresses=192.168.1.100 to-ports=80
add chain=dstnat action=dst-nat protocol=tcp dst-address=124.XXX.XXX.XXX dst-port=34567 to-addresses=192.168.1.100 to-ports=34567
add chain=dstnat action=dst-nat protocol=udp dst-address=124.XXX.XXX.XXX dst-port=34568 to-addresses=192.168.1.100 to-ports=34568

You may need to add the following depending on your forward policy.
Code:
/ip firewall filter
add chain=forward action=accept protocol=tcp dst-address=192.168.1.100 dst-port=80,34567
add chain=forward action=accept protocol=udp dst-address=192.168.1.100 dst-port=34568

_________________
IT consultant. Network manager. Packet junkie.
1-928-328-1509


Top
 Profile  
 
benmikrotik
 Post subject: Re: DVR outside network access
PostPosted: Tue Jul 27, 2010 5:36 pm 
Offline
Frequent Visitor
Frequent Visitor

Joined: Mon Apr 26, 2010 4:12 am
Posts: 62
Karma: 0
Thanks a lot blake, I have gotten it to work.

How important is the second code?

It's working without it.


Top
 Profile  
 
blake
 Post subject: Re: DVR outside network access
PostPosted: Tue Jul 27, 2010 9:51 pm 
Offline
Member
Member

Joined: Mon May 31, 2010 9:46 pm
Posts: 423
Karma: 49

Location: Arizona
If you have a deny (see below) at the end of your forward chain then you would need the second set of rules placed somewhere above that deny.
Code:
/ip firewall filter add chain=forward action=drop

_________________
IT consultant. Network manager. Packet junkie.
1-928-328-1509


Top
 Profile  
 
benmikrotik
 Post subject: Re: DVR outside network access
PostPosted: Wed Jul 28, 2010 10:06 am 
Offline
Frequent Visitor
Frequent Visitor

Joined: Mon Apr 26, 2010 4:12 am
Posts: 62
Karma: 0
Thanks again. :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 5 posts ] 

Board index » RouterOS » Forwarding Protocols

All times are UTC + 2 hours


Who is online

Users browsing this forum: lambert, woifili and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y