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

    Scheduled block of MAC address

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 493 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.
    • A
      aagaag
      last edited by

      Dear pfSense community,

      I have a n00b question (in real life I am a physician, and my knowledge of IP networking is full of gaps). Can I use pfSense to block outgoing traffic from a specific LAN MAC address during certain hours of the day? You have already guessed it - I need to find a way to wean my kids off the internet during their homework time…

      I shall be gratefeul to anybody who could walk be through the procedure of creating the proper firewall rule (and I'd be happy to reciprocate with all kind of medical advice!) :)

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

        So you wouldn't do it via mac address, unless these are wireless devices and you did that on your wireless AP..

        With pfsense you would set this mac to always get an IP.. This is done with a dhcp reservation or static dhcp as some call it.. So this device with mac 18-03-73-B1-0D-D3 for example always gets 192.168.1.100

        This as simple as looking in the current dhcp leases finding the device in question and clicking the little + box that says static mapping when you hover over it.

        Now once your device always is 192.168.1.X you can setup a firewall rule per a schedule that allows them to only use the internet when you want.  You will need to make sure the states are reset when you do this or any current connections they have open would continue to work until that state expired on its own or they closed the connection..

        Can show an example of this if need be…

        Now onto that medical advice... I have this mole on my johnson where should I send pic so you could take a look? ;) HEHEHEHEH ROFL!!!!  Sorry couldn't help myself heheehhe

        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

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

          As far as I know, pfSense doesn't filter on MAC addresses, unlike some other firewalls.  The best you could do is configure DHCP to always assign the same IP address to a MAC address and then filter on it.

          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
          • A
            aagaag
            last edited by

            @johnpoz:

            Now once your device always is 192.168.1.X you can setup a firewall rule per a schedule that allows them to only use the internet when you want.  You will need to make sure the states are reset when you do this or any current connections they have open would continue to work until that state expired on its own or they closed the connection..

            Can show an example of this if need be…

            Many thanks. Yes, an example of how-to, including resetting the states, would be highly appreciated!

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