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

Firewall rule based on IP name and not IP address

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 3 Posters 2.5k 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.
  • G
    gelcom
    last edited by Jul 21, 2015, 5:58 PM

    Hi guys, I'd like to allow a specific IP address in my network to access just 1 address from internet but I'd like to allow this access as www.site.com and not as its IP as it can change with time. How can I set a firewall rule to allow this since destination field on firewall rules only accepts IPs?

    kind regards

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jul 21, 2015, 6:01 PM

      alias

      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
      • G
        gelcom
        last edited by Jul 21, 2015, 6:16 PM

        not alias. I want pfsense to check the www.site.com agains DNS server so I can make sure I'm pointing to the correct IP as IP can change.

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Jul 21, 2015, 6:21 PM

          From the Firewall - Aliases - Edit page:

          "Enter as many hosts as you would like. Hosts must be specified by their IP address or fully qualified domain name (FQDN). FQDN hostnames are periodically re-resolved and updated. If multiple IPs are returned by a DNS query, all are used. You may also enter an IP range such as 192.168.1.1-192.168.1.10 or a small subnet such as 192.168.1.16/28 and a list of individual IP addresses will be generated."

          1 Reply Last reply Reply Quote 0
          • G
            gelcom
            last edited by Jul 21, 2015, 7:26 PM

            Thanks!

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Jul 21, 2015, 7:34 PM

              So like I said Alias ;)

              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
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received