Community discussions

MikroTik App
 
YordanY1
newbie
Topic Author
Posts: 35
Joined: Tue Sep 07, 2021 2:54 am
Location: Bulgaria

Access from 2nd WAN to specific Pool ?

Fri Oct 08, 2021 12:50 am

Hello.
I have 2 WANs on device RB3011UiAS.
1st WAN is on the SFP.
2nd WAN is kinda slow speed and I've setuped it on ETH10.

I have 3 pools
1. the DHCP pool which is on the 1st WAN.
2. a VPN pool for tunelling.
3. a Camera pool, which I have locked by MAC address some IP cameras and DAHUA NVR.

My question is :
- Is it possible to setup p2p trafic from the Dahua NVR to pass trough 2nd WAN only, and how ?

Thank You in advance!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19107
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Access from 2nd WAN to specific Pool ?

Fri Oct 08, 2021 2:11 pm

Yes
using IP route and route rules.
 
YordanY1
newbie
Topic Author
Posts: 35
Joined: Tue Sep 07, 2021 2:54 am
Location: Bulgaria

Re: Access from 2nd WAN to specific Pool ?

Sat Oct 09, 2021 3:36 am

Yes
using IP route and route rules.
:O !
Could You please rely me to some example, to get started with something please ?

Thank You for the reply, and thank You in advance.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19107
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Access from 2nd WAN to specific Pool ?  [SOLVED]

Sat Oct 09, 2021 4:33 pm

Sure lets say,
WAN1 gateway is 64.24.33.22
WAN2 gateway is 24.165.24.122
IP of NVR is 192.168.1.30
Assuming: Wan1 is primary and and Wan2 is only used if WAN1 is unavailable.

/ip route
add check-gateway=ping distance=5 gateway=64.24.133.22
add distance=10 gateway=24.165.24.122 distance=10
add distance=10 gateway=24.165.24.122 distance=10 routing-mark=FORISP2
/ip route rule
add action=lookup-only-in-table src-address=192.168.1.30/32 table=FORISP2

This ensures any traffic ORIGINATING from the NVR will go out WAN2.
How traffic reaches the NVR is up to how you setup port forwarding.
Ensure that the DYNDNS address or WANIP you give external users is affiliated with WAN2.

Who is online

Users browsing this forum: itsbenlol and 27 guests