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

    Scripting adding / removing alias host address ?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 1 Posters 381 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.
    • T
      TomT
      last edited by

      HI.

      I have Aliases list called REMOTE, this contains a list of local IP Addresses that can route via a specific VPN Tunnel.
      That is working fine and if I need to add a new device I update that list and it works.

      I occasionally have to add a device in for a short period and then I remove it.
      I'm wondering if there is anyway to script this, to save having to login to pfSense and manually add and/or remove the entry.

      I know the alias list will always be called REMOTE and I know the IP Address will always be 192.168.22.150

      Is there any way to automate adding the IP if it doesn't exist in this script or remove it if it does ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • T
        TomT
        last edited by

        I've resolved this using:
        https://github.com/jaredhendrickson13/pfsense-automator

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