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

    Is it possible to show the content/ip of a host alias?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 45 Views 3 Watching
    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.
    • S Offline
      slu
      last edited by

      Hi,

      is it possible to look whats inside the host alias (IPs) on the terminal?

      pfSense Gold subscription

      johnpozJ S 2 Replies Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator @slu
        last edited by

        @slu simple way would be to just cat your /tmp/rules.debug, the user aliases will be listed out in there

        example:

        # User Aliases 
        80_443_22 = "{   80  443  22  8080 }"
        table <AccessPoints> {   192.168.2.2  192.168.2.3  192.168.2.4 } 
        AccessPoints = "<AccessPoints>"
        table <alexas> {   192.168.4.76  192.168.4.77  192.168.4.78  192.168.4.79  192.168.4.80 } 
        alexas = "<alexas>"
        

        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 1
        • S Offline
          SteveITS Rebel Alliance @slu
          last edited by

          @slu You can run:

          pfctl -T show -t aliasname

          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
          Upvote 👍 helpful posts!

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            slu @SteveITS
            last edited by slu

            Thank you @johnpoz and @SteveITS for the super fast reply.

            pfSense Gold subscription

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