Community discussions

MikroTik App
 
nishadul
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Thu Dec 13, 2012 12:04 pm
Location: Bangladesh

Port forwarding in local network

Thu Jan 12, 2017 10:48 am

Hello,

I have port forwarding in my router for to see dvr video from outside of my network, it is working fine( from another ISP---->my router's public IP------> DVR. But when I try to see from my local network then it is not work as like local network pc -----------> router public IP-----------------> DVR, How to possible ?

I want PC-2 (same network PC-2 and DVR) will be connected with DVR using my router's public IP. pl see the attach picture.
network.pdf
You do not have the required permissions to view the files attached to this post.
 
gustavomam
Trainer
Trainer
Posts: 287
Joined: Tue Jul 23, 2013 6:29 pm
Location: Spain
Contact:

Re: Port forwarding in local network

Thu Jan 12, 2017 11:01 am

Hi.

By the configuration in the router firewall process it is not possible.

You could use dns rule (ip dns) like dvr.mysite.com pointing 192.168.1.10 and register the public IP with public adress, that's a easy way to solve it.
 
nishadul
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Thu Dec 13, 2012 12:04 pm
Location: Bangladesh

Re: Port forwarding in local network

Thu Jan 12, 2017 11:50 am

Hi.

By the configuration in the router firewall process it is not possible.

You could use dns rule (ip dns) like dvr.mysite.com pointing 192.168.1.10 and register the public IP with public adress, that's a easy way to solve it.
I am not understanding it, Pl give me details
 
gustavomam
Trainer
Trainer
Posts: 287
Joined: Tue Jul 23, 2013 6:29 pm
Location: Spain
Contact:

Re: Port forwarding in local network

Thu Jan 12, 2017 12:06 pm

Here it is a picture with an explication
You do not have the required permissions to view the files attached to this post.
 
nishadul
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Thu Dec 13, 2012 12:04 pm
Location: Bangladesh

Re: Port forwarding in local network

Thu Jan 12, 2017 12:18 pm

Here it is a picture with an explication
This system work for one dvr (because we have one public IP) but we have 7 dvr.
You means public DNS register, which we register from domain company.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Port forwarding in local network

Thu Jan 12, 2017 12:59 pm

You have to make a Hairpin NAT Rule,
http://wiki.mikrotik.com/wiki/Hairpin_NAT
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: Port forwarding in local network

Fri Jan 13, 2017 6:27 pm

Why are you using the public IP from pc2 since they are on the same network? Is there a reason??

Send from my mobile via Tapatalk. Sorry for the errors and briefness.
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: Port forwarding in local network

Fri Jan 13, 2017 6:28 pm

Edit: ... for pc2...

Send from my mobile via Tapatalk. Sorry for the errors and briefness.
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: Port forwarding in local network

Fri Jan 13, 2017 6:41 pm

Disregard my questions. Rudios' answer is the way to go. ;)

Send from my mobile via Tapatalk. Sorry for the errors and briefness.
 
nishadul
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Thu Dec 13, 2012 12:04 pm
Location: Bangladesh

Re: Port forwarding in local network

Sat Jan 14, 2017 6:46 am

Disregard my questions. Rudios' answer is the way to go. ;)

Send from my mobile via Tapatalk. Sorry for the errors and briefness.

Because PC-2 connect with our office wifi network (same network) This pc some time use same network and some times use other (3g) network (when out of office)
When PC-2 out of office, it use 3g internet connection, in this time if I check dvr video then i need to use public ip of my router and when this pc-2 come at office then use wifi internet connection (same network of dvr) and if i check dvr video in this time then I need to set private ip.
 
mrdipesh1
just joined
Posts: 6
Joined: Fri Nov 03, 2017 5:50 am
Location: Nepal

Re: Port forwarding in local network

Tue Jul 31, 2018 4:56 pm

I have two different network:
WAN 1: Gateway 192.168.200.1, IP 192.168.200.2
LAN 2 : IP 192.168.10.0/24 (office network, and has server)
LAN 3: IP 192.168.20.0/24 (guest network)
There is no any bridge connection and I don't want computers of LAN 2 to be visible to LAN 3

Server IP 192.168.10.2 (connected on LAN 2)
User IP 192.168.20.2 (connected on LAN 3)

I can ping server from User pc and also I can access server files by \\192.168.10.2 but I cant access by \\ServerPcName
All I want is to access 192.168.10.2 from 192.168.20.2 only, not from all computers of LAN 3.
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13083
Joined: Thu Mar 03, 2016 10:23 pm

Re: Port forwarding in local network

Thu Aug 02, 2018 11:52 am

Access to \\servername from different network requires some setup on the windows sharing level and doesn't have much to do with router's firewall. You'll have to learn about windows domans and how to span multiple broadcast domains.