Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Open up a vlan ip to the outside

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    38 Posts 3 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @rashadmahmood
      last edited by johnpoz

      @rashadmahmood how many interfaces does your router have - you don't have to create vlans to segment networks, unless you need to run more than 1 network over the same physical interface.

      And your prob going to want to have multiple interfaces on this PC being used as your nvr, or all the camera traffic will be using the same interface it uses to talk to the network for other stuff.

      A vlan still uses the bandwidth on that physical interface.. You more than likely are going to the camera to nvr completely different network interfaces.

      Might not be an issue, but how many cameras - what resolution? Are they recording constant or just on events?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      R 1 Reply Last reply Reply Quote 1
      • R
        rashadmahmood @johnpoz
        last edited by rashadmahmood

        @johnpoz

        I have the Netgate 4100 which has 2 WAN and 4 LAN ports.

        I can install install another NIC in the windows 10 machine (NVR)

        I will have 4 camera's all doing 1080P, they can be set to record on events to save disk usage.

        My network will consist of the following:

        1 x Netgate 4100 router
        1 x Freepbx server (intel NUC)
        1 x AXIS Camera Station 5 running in a Lenovo ThinkCentre M720q (windows 10)
        4 x IP camera with 1080P
        3 x voip Polycom telephones
        1 x Netgear POE switch
        2 x WIFI Zyxel access points

        In the future I would like to add in a NAS drive

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @rashadmahmood
          last edited by johnpoz

          @rashadmahmood so your not currently using all your lan ports on the 4100?

          I mean you could do it with vlans - but if you have the physical interfaces prob best to keep that video traffic off your normal network, and wouldn't be running it over your wifi, etc.

          Can your poe switch do vlans? If not do you use it for your other traffic?

          I mean 4 1080P cameras prob not all that much traffic - but why mix it with normal traffic if you don't have to.. What about if/when you add more cameras, etc.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          R 1 Reply Last reply Reply Quote 1
          • R
            rashadmahmood @johnpoz
            last edited by

            @johnpoz

            The router is only using the 1 LAN which the connects to the POE switch, the switch supports vlans.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @rashadmahmood
              last edited by johnpoz

              @rashadmahmood How many ports do you have free on your poe switch, you can use another port on the poe and pfsense for your other segmented network without having to vlan them.

              I do this - I have some networks just native, and then some networks that are vlans over the same physical wire. The networks that are vlans are just wifi networks, and don't actually talk to each other so no hairpin traffic over the same physical interface.

              For remote access I would setup a vpn.. So you don't have to expose cameras or the nvr to the public internet at all.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              R 1 Reply Last reply Reply Quote 0
              • R
                rashadmahmood @johnpoz
                last edited by rashadmahmood

                @johnpoz

                The POE switch will have 3-4 ports free.

                so I should segment the access points, using the two lans on pfsense? - and set up firewall rules so they can speak to the other network in the house (some pcs will be connected to the physical lan)

                Do I still need two NICS in the NVR?

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @rashadmahmood
                  last edited by

                  @rashadmahmood do your AP support vlans? You can for sure segment out your wifi ssids to different networks if you desire. But your cameras are not over wifi are they? You really wouldn't need a wifi segment for your cameras if they are wired.

                  And again - your cameras are not going to be saturating the wire or anything, not with 4 of them.. But I would keep traffic between the cameras and the nvr on a completely different network than your normal network traffic. If your wanting to segment it out, might as well keep it from riding over the same wires as your normal network if possible.

                  For example - lets say your cameras are doing 40mbps per second.. If that rides over the same wire as your normal traffic to your router as all your other traffic for other networks, or even over the same wire to say your nvr machine. That is 40mbps that is used that your devices can't use.. Or if you saturate that link with other traffic, maybe your cameras have issues with recording..

                  It is best if possible to put this sort of traffic on its own wires so that it doesn't compete or interfere with your normal day to day network traffic.

                  its not the end of the world if you can't, and it might never be problem - but if your going to take the time to set it up on its own network anyway, might as well keep this traffic off your normal day to day connections.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  R 1 Reply Last reply Reply Quote 1
                  • R
                    rashadmahmood @johnpoz
                    last edited by

                    @johnpoz

                    yep the access points can do vlans.

                    @johnpoz said in Open up a vlan ip to the outside:

                    It is best if possible to put this sort of traffic on its own wires so that it doesn't compete or interfere with your normal day to day network traffic.

                    absolutely agree, I will do this, thanks so much for your help and advice!

                    1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @rashadmahmood
                      last edited by

                      @rashadmahmood said in Open up a vlan ip to the outside:

                      What is the best way to deal with this? My understanding is that you want to segment the CCTV LAN; otherwise, the whole network would be broadcasting all over the place. With a VLAN, I can confine this to the CCTV LAN.

                      Does your NVR have 2 ports? If so, you use one to access the NVR from elsewhere and one for an isolated LAN for your cameras.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      R 1 Reply Last reply Reply Quote 1
                      • R
                        rashadmahmood @JKnott
                        last edited by

                        @JKnott

                        thanks, yes I will separate the camera network from the NVR.

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @rashadmahmood
                          last edited by

                          @rashadmahmood keep in mind if your going to multihome this box your using as your nvr. The interface you add to the cam network you create wouldn't have a gateway set, nor dns on this interface.

                          I would just have an IP with proper mask for the network your attaching it too.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rashadmahmood @johnpoz
                            last edited by rashadmahmood

                            @johnpoz

                            You mean such as 192/168.0.1/24 (proper subnet mask?) and omit the gateway?

                            johnpozJ 1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @rashadmahmood
                              last edited by

                              @rashadmahmood yeah your just going to use this interface to talk to cameras on this same network - you would not want your pc being used as nvr to use it for any other connections to other networks - so there would be no gateway set on it.

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              R JKnottJ 2 Replies Last reply Reply Quote 1
                              • R
                                rashadmahmood @johnpoz
                                last edited by

                                @johnpoz

                                Many thanks

                                johnpozJ 1 Reply Last reply Reply Quote 0
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator @rashadmahmood
                                  last edited by

                                  @rashadmahmood example - my main pc connection to my nas at 2.5ge.. That I use only to move files back and forth from my pc and nas.

                                  This network 192.168.10/24 isn't use for anything else.. Kind of like the network your pc/nvr will user to talk to the cameras..

                                  if I want to talk to the nas for say admin of the nas, then I talk to it on its 192.168.9 IP address.

                                  example.jpg

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                                  R 1 Reply Last reply Reply Quote 1
                                  • R
                                    rashadmahmood @johnpoz
                                    last edited by

                                    @johnpoz perfect, thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • JKnottJ
                                      JKnott @johnpoz
                                      last edited by

                                      @johnpoz said in Open up a vlan ip to the outside:

                                      so there would be no gateway set on it

                                      Unless the device needs a gateway set. Then just use the NVR or a dummy address.

                                      PfSense running on Qotom mini PC
                                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                      UniFi AC-Lite access point

                                      I haven't lost my mind. It's around here...somewhere...

                                      johnpozJ 1 Reply Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator @JKnott
                                        last edited by

                                        @JKnott said in Open up a vlan ip to the outside:

                                        Unless the device needs a gateway set.

                                        Why would the windows PC with a 2nd nic added it to it need a gateway on the interface?

                                        This not the cameras - this is the PC he is using as his NVR.

                                        "It's a PC running Windows 10 with AXIS Camera Station 5 software"

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        R JKnottJ 2 Replies Last reply Reply Quote 0
                                        • R
                                          rashadmahmood @johnpoz
                                          last edited by rashadmahmood

                                          @johnpoz + @JKnott

                                          The 1st NIC connected to the network (for the purpose of viewing the server/software) would require a gateway - correct?
                                          The 2nd NIC connected to the cameras via a POE switch does not require a gateway?

                                          Have I understood this correctly?

                                          Also can I use the same POE switch for bother camera (different network) and other lan devices (again another network)?

                                          R JKnottJ 2 Replies Last reply Reply Quote 0
                                          • R
                                            rashadmahmood @rashadmahmood
                                            last edited by rashadmahmood

                                            @johnpoz + @JKnott

                                            So I'm thinking of implementing the following

                                            Network 1:

                                            Subnet: 192.168.0.0/24
                                            Gateway: 192.168.0.1 (pfSense)
                                            Windows machine for viewing cameras: Assign a unique IP within the range, e.g., 192.168.0.10/24
                                            Other LAN devices: Assign unique IPs within the range.
                                            VLAN 1:

                                            VLAN 1 Interface for Access Point 1: 192.168.0.2/24
                                            VLAN 1 Interface for Access Point 2: 192.168.0.3/24

                                            Network 2 (CCTV):

                                            Subnet: 10.0.0.0/25
                                            NIC 2 of the Windows machine: Assign an IP within this range, e.g., 10.0.0.1 with no gateway
                                            cameras 1 to 4 set with no gateway

                                            Example Configuration:
                                            pfSense Gateway: 192.168.0.1/24
                                            Windows Machine NIC 1 (Network 1): 192.168.0.10/24
                                            Windows Machine NIC 2 (Network 2): 10.0.0.1/25
                                            Access Point 1: 192.168.0.2
                                            Access Point 2: 192.168.0.3

                                            Also create a vpn to access the 192.168.0.0/24 network

                                            Apologies, its been a while since I messed with network configs.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.