• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 377 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 Dec 19, 2018, 3:12 PM

    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
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz Dec 19, 2018, 3:15 PM Dec 19, 2018, 3:15 PM

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

      1 Reply Last reply Reply Quote 2
      • S
        sensori
        last edited by Dec 19, 2018, 4:35 PM

        @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
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Dec 19, 2018, 4:49 PM

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

          1 Reply Last reply Reply Quote 0
          • S
            sensori
            last edited by Dec 19, 2018, 5:19 PM

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