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

    Automate static arp

    General pfSense Questions
    2
    4
    750
    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.
    • E
      emoelf
      last edited by

      I'd like to schedule a task at a given time which would enable mac address filtering for a given set of mac addresses, to be determined ahead of time. I have been trying to do this via ssh terminal and I can use the arp command to remove an entry which I included in the static arp list I set up via the console, but the associated device is still able to connect.

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

        What exactly is your goal your wanting to achieve?  Why do you want to block mac - why would you not just use schedules and block the IP of said device?

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • E
          emoelf
          last edited by

          My goal is to not allow a subset of devices to connect during a specific time frame and to automate that so that I can schedule it so I don't have to be present to do it manually. If I can accomplish that with ip addresses, that's fine.  I am using dhcp and I'm not sure if a given device will always receive the same ip address.  If this is the case, can you recommend how to schedule access availability per device by ip address?

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

            so first thing would be to setup a dhcp reservation, ie static dhcp so that client always gets the same IP.  Then create a schedule for your rules so those IPs don't have access when you don't want them to have access.

            https://doc.pfsense.org/index.php/Firewall_Rule_Schedules

            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.7.2, 24.11

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