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

    Block IP camera internet traffic?

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 3 Posters 3.3k 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.
    • C
      cparkervt
      last edited by

      The easiest way to do this is to make an alias with your desired IP range to block from going outside your network, and then use that alias to make a deny rule. That's what I did with my IP cameras and it works great at stopping them from phoning home.

      1 Reply Last reply Reply Quote 0
      • R
        richtj99
        last edited by

        That sounds great - do you mind sharing how you set that up? I have never used an alias before.

        1 Reply Last reply Reply Quote 0
        • R
          richtj99
          last edited by

          So for some reason when I setup the rules, they never actually turn on. I did try the reset state but that doesnt do it either. Should the above rule stop traffic to 192.168.1.249?

          The alias is pretty cool too & will do the ticket for me! I just need to get the firewall to block traffic.

          1 Reply Last reply Reply Quote 0
          • C
            cparkervt
            last edited by

            Aliases are fun, since they can replace swathes of rules and make everything look super clean.

            I had the same issue with fresh block rules not going into apparent effect immediately; it does come down to that state table. Filter the state table based on the IP of the camera then kill all of those states, and you should see it start to work. If you see numbers in the left hand column in your rules table, you can see it working. To double verify, turn on logging for that rule and check the Firewall Logs.

            R 1 Reply Last reply Reply Quote 0
            • R
              richtj99 @cparkervt
              last edited by

              @cparkervt

              So I went into states, then typed in 192.168.1.249 and it says nothing is found?

              0_1534521127278_states.JPG

              T C 2 Replies Last reply Reply Quote 0
              • T
                TheNarc @richtj99
                last edited by

                @richtj99 Have you added a static mapping (Services > DHCP Server > DHCP Static Mappings for this Interface) for your camera too? Because without that, just because it's 192.168.1.249 now doesn't mean it always will be. By adding a static mapping, you can be assured that the camera will always have that IP. And then you just need to add a LAN firewall rule blocking all traffic whose source is 192.168.1.249. You could use an alias for that IP too if you'd like (and will need to if you want to block the range as you described). What about your first rule wasn't working? From what I can see, that should have successfully blocked the IP 192.168.1.249 from getting to the WAN, although per cparkervt's comment you might need to clear states first.

                R 1 Reply Last reply Reply Quote 0
                • C
                  cparkervt @richtj99
                  last edited by

                  @richtj99 does the camera itself have a ping utility in its web UI? You can try pinging an outside IP to verify it’s blocked.

                  1 Reply Last reply Reply Quote 0
                  • R
                    richtj99 @TheNarc
                    last edited by

                    @thenarc

                    Hi - I dont have static mapping turned on but did log into the camera web interface and set a static IP.

                    @cparkervt
                    I am able to ping the IP from inside the network. I only access the camera from outside the network using Openvpn.

                    I guess I am looking for an internal firewall block, not an external firewall block (as my whole network is blocked with the firewall).

                    T C 2 Replies Last reply Reply Quote 0
                    • T
                      TheNarc @richtj99
                      last edited by

                      @richtj99 If you're using pfSense as a DHCP server for everything else, I'd recommend adding a static mapping. Either that, or make sure that 192.168.1.249 is outside of the IP range the DHCP server is using.

                      1 Reply Last reply Reply Quote 0
                      • C
                        cparkervt @richtj99
                        last edited by

                        @cparkervt
                        I am able to ping the IP from inside the network. I only access the camera from outside the network using Openvpn.

                        I guess I am looking for an internal firewall block, not an external firewall block (as my whole network is blocked with the firewall).

                        I am referring to using the ping on the camera itself to test against 8.8.8.8 to make sure that rule is doing what you want.

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