Hi everyone,
I'm seeking guidance on setting up a policy for accessing our network cameras from both LAN and Wi-Fi clients on our Fortigate firewall. We're facing a bit of a challenge due to some potential misconfiguration with our NVRs and camera subnet masks.
Our Setup:
Problem:
The camera subnet mask (255.255.0.0) doesn't seem to match the Class A network address (10.10.10.x). This mismatch likely stems from a misconfiguration during deployment. We need to establish a policy allowing camera access from both LAN and Wi-Fi clients while potentially addressing the subnet mask discrepancy.
Questions:
Additional Issue:
We appreciate any insights and assistance you can offer. Thank you in advance for your time and expertise!
Sincerely,
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi Sagvan
I don't have experience with cameras, but I'll try give some advice in general aspects.
In case there is a router between firewall and cameras, you need to add a static route on FG in order to reach the cameras, if needed.
Additional issue:
The error message means you may did a mistake in subnet mask.
So will the following changes solve problem:
NVRs
- Interfaces facing cameras (acting as default gateway): 10.0.0.1, 10.0.0.2, and 10.0.0.3
- Subnet mask: 255.0.0.0 (/8)
&
- Interfaces facing Fortigate: 192.168.91.41, 192.168.91.42, 192.168.91.43
- Subnet mask: 255.255.192.0 (/18)
Cameras:
- Individual addresses: 10.0.0.2, 10.0.0.3, 10.0.0.4, etc.
- Default gateway: 10.0.0.1, 10.0.0.2, or 10.0.0.3 (based on NVR)
- Subnet mask: 255.0.0.0
Hi Sagvan
/8 and /18 are too big and you will consume all your 10.x in just one subnet.
To make a good subnetting you need to ask the question how many cameras do you have? and how many do you plan to have in the future?
If it is less than 250 cameras then just use /24 mask or even a shorter mask (/26 or /28)
On the other hand, if you have 3 NVRs that are also routers for the cameras then you can't make a single subnet for the three, you need to have three subnets, e.g.: 10.10.10.0/24, 10.10.11.0/24 and 10.10.12.0/24.
So to summarize and to make it simple, you can do subnetting as follows:
Then you also add the following static routes to FG:
Thank you for your reply again, @AEK
We will try it and see.
If I need more guidance, I will ask further.
I appreciate it.
You can reference this KB article for the error "Bits of the IP address will be truncated " https://community.fortinet.com/t5/FortiGate/Technical-Tip-Bits-of-the-IP-address-will-be-truncated-b...
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1688 | |
1087 | |
752 | |
446 | |
226 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.