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

    Block internet access by MAC Address

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 5 Posters 6.4k 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.
    • M
      mtriber
      last edited by

      I Have a network at home with a PFSense firewall. I would like to use the Firewall rules or what to block internet access for one of these devices on the network? This is a cell phone and I want to turn it off during night time hours. The one that I want to block does not have a static IP address assigned, and I also know its MAC address. I just cant seem to be able to figure out how to create a rule that will effectively block internet access for that one device. But I still want that device to be able to access the network internally, such as network printers shared drives etc. I would like to use the MAC address to limit internet access. I don't wan't the person to know I am blocking them

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

        AFAIK, pfSense doesn't filter on MACs.  However, what you might try is to set up your DHCP server to always give that phone the same IP address and filter on that.

        MAC filtering is something that's sadly missing from pfSense.

        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...

        1 Reply Last reply Reply Quote 0
        • N
          Nullity
          last edited by

          ipfw does support MAC address filtering but I dunno how to properly use it with pfSense.

          Please correct any obvious misinformation in my posts.
          -Not a professional; an arrogant ignoramous.

          1 Reply Last reply Reply Quote 0
          • H
            hendersonmc
            last edited by

            @mtriber:

            I Have a network at home with a PFSense firewall. I would like to use the Firewall rules or what to block internet access for one of these devices on the network? This is a cell phone and I want to turn it off during night time hours. The one that I want to block does not have a static IP address assigned, and I also know its MAC address. I just cant seem to be able to figure out how to create a rule that will effectively block internet access for that one device. But I still want that device to be able to access the network internally, such as network printers shared drives etc. I would like to use the MAC address to limit internet access. I don't wan't the person to know I am blocking them

            • Go to DHCP Leases under the Status menu. Find the MAC and use the Actions to fix the address outside the dynamic range

            • Write your rules based upon (fixed) IP address

            1 Reply Last reply Reply Quote 0
            • K
              kpa
              last edited by

              This is a design choice originating from OpenBSD's PF where they promote "correctness" which in the case of PF means it's strictly a layer 3 packet filter and provides no means to express rules in terms of lower level (layer 2) traffic and its properties. FreeBSD's packet filter hooks do allow this access and IPFW makes use of it if you instruct it with correct rules.

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

                ^^^^
                Sometimes "correctness" might not be correct.  ;)

                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...

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