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

    Blocking domains via text file

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 417 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.
    • S
      sensori
      last edited by

      Hi all,

      I would like to block some domains. Is it possible to upload to pfSense a text file containing such domains which will be blocked by the firewall?

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

        You could create a fqdn alias and then sure use that alias to block.. Or take a look at pfblocker package.

        Or you could use proxy and block domains and fqdn/urls there.

        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 2
        • S
          sensori
          last edited by

          @johnpoz : Thanks for the quick response!
          I have pfBlockerNG installed but is causing me some issues. I'll try the other two options.

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

            pfblocker is not the click click done sort of package - its got lots of power.. Which can be overwhelming to the new user.. Same goes for running a proxy.

            The easy solution is to just create a fqdn alias and use that in a simple block firewall rule.

            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
            • S
              sensori
              last edited by

              @johnpoz : I had to deactivate pfblocker because it was blocking internet access and once freezed the whole system and I had to reboot. But I don't know for sure if it was pfblocker itself or the rules I have.

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