Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    blocking Youtube and tiktok using rule firewall and fetched ip list

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 1.2k 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.
    • R
      RMAZOUZI
      last edited by

      hello please should be informed that i fetched list of ip public of youtube and tiktok

      i need to add these address to url ip inorder to block the users access to youtube and tiktok

      can u help me please how to add these list of to url ip

      for example tiktok :

      71.18.247.0/24
      71.18.248.0/24
      71.18.249.0/24
      71.18.250.0/24
      71.18.251.0/24
      71.18.252.0/24
      71.18.253.0/24
      71.18.255.0/24
      103.136.220.0/22
      103.136.220.0/23
      103.136.220.0/24
      103.136.221.0/24
      103.136.222.0/23
      103.136.222.0/24
      103.136.223.0/24
      118.26.132.0/24
      199.103.24.0/24

      G 1 Reply Last reply
      Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Where are you fetching them from? A URL alias has to be a fixed URL that hosts a list of IP or subnets.

        If it's just that list then just add them as a regular alias with a list of networks.

        Steve

        R 1 Reply Last reply
        Reply Quote 0
        • R
          RMAZOUZI @stephenw10
          last edited by

          @stephenw10
          So i used an advanced command under linux

          whois -h whois.radb.net -- '-i origin AS138699' | grep ^route > tiktok.txt

          1 Reply Last reply
          Reply Quote 1
          • G
            Gblenn @RMAZOUZI
            last edited by

            @RMAZOUZI Have you looked at using something like AdGuard Home for this? You can run it as a VM or on a Rraspberry Pi and it has a very nice and simple UI for blocking of those two services as well as many others.

            R 1 Reply Last reply
            Reply Quote 0
            • R
              RMAZOUZI @Gblenn
              last edited by

              @Gblenn it is a good idea but using pfsense rules is practice , i need just to know how to upload these address ip to pfsense and considere it as ip url alias

              thanks

              1 Reply Last reply
              Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                You can add AS numbers as aliases using the pfBlockerNG package and it will keep them updated.

                Screenshot from 2024-12-09 14-31-43.png

                R 1 Reply Last reply
                Reply Quote 0
                • R
                  RMAZOUZI @stephenw10
                  last edited by RMAZOUZI

                  @stephenw10 this is what I was looking for thanks a lot

                  1 Reply Last reply
                  Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy