Hello there, I was wondering if its possible to access a NVR in a VLAN using wireguard (I access from a bridge server from my device, its client to site) where my NVR is connected at the same server that my PC will connect to access this NVR through that wireguard server, but what I want and if its possible is to make the NVR in that vlan accessible to wireguard but the internet connection of the NVR is coming not from the wireguard interface but from my primary WAN, so it can be acessed from the nvr app and from the vpn, thanks in advance!
It is likely possible, but it would be best if you provide a network topology diagram so we can understand how things connect together.
Right i have this topology:
Network media converter (fiber to utp) -> nanopi r2s (all my network is managed from here, including the connection via pppoe) -> via tl-sg105e i connect my nvr using the port 5 that is linked to vlan 60 (my nvr has the ip address assigned from the dhcp server of the vlan interface in openwrt 192.168.60.2, subnet 192.168.60/30)
Will wireguard reside on the r2s? If so, this should be trivially easy to implement.
Yes, this is perfectly possible: I am currently using wireguard to connect two locations with several networks on each side.
The first step is to ensure that there are no conflicting network addresses between the two locations. Then, you create the tunnel, and configure it to allow traffic from/to the subnetworks.
I'm running nearly the same configuration.
R2S with wireguard installed and my ReoLink NVR connected to a VLAN.
I realized that it did not work with the NVR, but it did work with a RasPi in the same VLAN.
Finally I have contacted ReoLink. They have canged something in the NVR firmware. I don't know what ... But with this firmware everything works as expected.
So it may be helpful to cross check if your NVR has same problems ...
Yes, but i dont have how to connect to the vpn server with a client in nvr, so thats why i want to keep the original connection of the nvr to my wan preserved and make me able to connect to the nvr thats in a vlan with a wireguard bridge server, in the r2s will be connected as a client to the bridge server letting another host in the same server connected as client access the nvr