OK. That makes sense.The NVR is static 192.168.21.xxx
Honestly I am a little confused by these subnets. I'm not sure what you have set up on purpose and what might be an error. Is the NVR set up on a different network subnet as the rest of your network? (If so, that is something I address below).
That being said, there are there are three network subnets (more if you use VLANs) in play when you use a VPN and you need to understand how they relate and interact with each other......
First you have your local network. As I noted above I am a little unsure if it is set up as a 192.168.21.0/24 network or a 192.168.1.0/24 network, or both because you have set up a VLAN or are trying to keep your CCTV devices separate from the rest of the network. However if your local network has more than one subnet (which it would if you are using VLANs) you need to specify both/all subnets that you want to be able to access across the VPN. If you only entered 192.168.1.0/24 in this particular setting, then nothing on 192.168.21.0/24 would be available across the VPN, even if you can normally access it from the 1.0 network when you are on the local network. If you aren't intending to use two different network subnets on your local network, then it seems there might be some unresolved core network issues that need to be solved at the "local" level before you attempt to continue with the VPN.
Second you have the "tunnel" subnet. This is a network that is created by the VPN service for the sole purpose of connecting the two ends (local and remote) together. You should be able to enter the subnet you want to use for this "tunnel" as part of the VPN settings.
Third, you have the "remote" network that your device is on. It might be a cellular network, or a network at work, or another house, etc, etc, etc.
All three of these networks have to be on different subnets. You can control the first two subnets, but you really can't control the "remote" network subnet. For example, If you find yourself at someone's home that uses the same network subnet that you use at your home (192.168.1.0/24 for example), you will run into issues. Obviously 192.168.1.0/24 and 192.168.0.0/24 networks are the two most commonly used "default" networks on "residential grade" routers. Therefore it might be smart for you to choose a more random network subnet for your local network to prevent potential conflicts in the future when you find yourself on a residential network that has been set up on it's "default" settings.
Yes, that is correct.And the NVR uses your Router at 192.168.21.1 as its Gateway?
/24 is another way of writing the subnet mask. It defines how large a network is. So 192.168.1.1 with a subnet mask of 255.255.255.0 is the same thing as 192.168.1.0/24. It's obviously easier to write out 192.168.1.0/24. A /24 (255.255.255.0) network is the most commonly used size for residential networks and it's the only network size that most non-IT people think exists. Truth is there is a wide range of network sizes.I don't understand the 192.168.1.0/24 what is the 0/24 ?
OK. That makes sense.
The VPN can only "see" those local subnets that you have specifically set up. I am unsure of your exact VPN settings, but hopefully there is a setting where you can specify all of the subnets you want to be able to access over the VPN. (192.168.1.0/24 AND 192.168.21.0/24 for example). If there is no setting like this, then the system might simply default to the single subnet that the router is found on (192.168.1.0/24). This would explain why you cannot communicate with the 192.168.21.x devices.
So long story short, review your VPN settings and see if there is a setting that says something like "allowed network" or "local network" that is currently set for 192.168.1.0/24 and modify that field to also include 192.168.21.0/24. Usually you just put a comma in between each subnet you want to enter and you can enter as many as you need for your situation.
Answer this please....
Why can I get to the Asus router IP webpage or GUI?
Please see post #47@BruceWayne007 Is this what your VPN Gui looks like? [VPN] How to set up a VPN server on ASUS router – OpenVPN | Official Support | ASUS Global
Those seem like pretty easy instructions. I would ask that now that you have everything on a 192.168.1.1 network, that you restart the VPN process from scratch following those instructions and see if it works.
I think MikeA's answer to that post is probably the most accurate. It sounds like he has first hand knowledge about the ASUS device and how it handles VPNs.Please see post #47
Interface 1 : Please refer to the following steps to set up OpenVPN Server (support routers with firmware later than 3.0.0.4.388.xxxx (including))
I haven't followed the rest of the thread, but generally you need to have remote admin turned on in the router's set up in order to access it remotely. But in most cases you don't want to leave things set that way. There have been some exploits that take advantage of that.
The way that the Asus (and others) firewall works re VPN is that you don't truly have an internal IP. You have what's typically a 10.x.x.x address that the router internally routes to the 192.168.x.x subnet. The firewall evaluates the IP address before that routing so it sees the remote VPN address as external traffic vs internal. Same will apply if you block your cam from the Internet. You won't be able to access them remotely even with a 192.168.x.x address for the same reason.
Nope, my iPhone and MacBook cannot communicate with the NVR using the VPN.Reading back through the thread, so it's only your iPhone that has a problem? Other clients connecting over the VPN remotely work OK?