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

    How to Block Youtube for relevant IP address

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 360 Views 2 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.
    • M Offline
      mithunkumara
      last edited by

      Dear All,

      I want to block youtube for some ip addresses and how to do it. I want to try without squid.

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN Offline
        NogBadTheBad
        last edited by

        Have a look at pfBlocker-NG.

        Use it to create a firewall alias for Youtube ASN numbers.

        AS details for AS36561 :-
        
        aut-num:        AS36561
        as-name:        YOUTUBE
        descr:          YouTube, Inc.
                         71 E 3rd Ave
                         Second Floor
                         San Mateo, CA 94401
                         US
        admin-c:        NETWO1084-ARIN
        tech-c:         NETWO1084-ARIN
        mnt-by:         MNT-YOUTU
        changed:        radb@youtube.com 20060524
        source:         ARIN
        
        IPv4 subnets for AS36561 :-
        
        208.65.152.0/23
        208.65.152.0/22
        208.65.154.0/23
        64.15.112.0/20
        64.15.112.0/22
        64.15.120.0/22
        64.15.116.0/23
        64.15.118.0/23
        208.117.224.0/19
        208.65.153.0/24
        208.65.152.0/24
        208.65.154.0/24
        208.65.155.0/24
        64.15.127.0/24
        64.15.126.0/24
        64.15.125.0/24
        64.15.124.0/24
        64.15.123.0/24
        64.15.122.0/24
        64.15.121.0/24
        64.15.120.0/24
        64.15.119.0/24
        64.15.118.0/24
        64.15.117.0/24
        64.15.116.0/24
        64.15.115.0/24
        64.15.114.0/24
        64.15.113.0/24
        64.15.112.0/24
        208.117.255.0/24
        208.117.254.0/24
        208.117.253.0/24
        208.117.252.0/24
        208.117.251.0/24
        208.117.250.0/24
        208.117.249.0/24
        208.117.248.0/24
        208.117.247.0/24
        208.117.246.0/24
        208.117.245.0/24
        208.117.244.0/24
        208.117.243.0/24
        208.117.242.0/24
        208.117.241.0/24
        208.117.240.0/24
        208.117.239.0/24
        208.117.238.0/24
        208.117.237.0/24
        208.117.236.0/24
        208.117.235.0/24
        208.117.234.0/24
        208.117.233.0/24
        208.117.232.0/24
        208.117.231.0/24
        208.117.230.0/24
        208.117.229.0/24
        208.117.228.0/24
        208.117.227.0/24
        208.117.226.0/24
        208.117.225.0/24
        208.117.224.0/24
        
        IPv6 subnets for AS36561 :-
        
        
        
        Wednesday, 9 October 2019 at 09:38:34 British Summer Time
        
        AS details for AS43515 :-
        
        aut-num:        AS43515
        org:            ORG-GIL4-RIPE
        as-name:        YOUTUBE
        descr:          YOUTUBE
        import:         from AS5511 accept ANY
        import:         from AS3320 accept ANY
        import:         from AS1273 accept ANY
        import:         from AS3549 accept ANY
        import:         from AS8928 accept ANY
        mp-import:      afi ipv6.unicast from AS8928 accept ANY
        export:         to AS5511 announce AS43515
        export:         to AS3320 announce AS43515
        export:         to AS1273 announce AS43515
        export:         to AS3549 announce AS43515
        export:         to AS8928 announce AS43515
        mp-export:      afi ipv6.unicast to AS8928 announce AS43515
        admin-c:        DUMY-RIPE
        tech-c:         DUMY-RIPE
        status:         ASSIGNED
        mnt-by:         RIPE-NCC-END-MNT
        mnt-by:         MNT-YOU-TUBE
        created:        2007-08-15T07:35:37Z
        last-modified:  2018-09-04T10:26:13Z
        source:         RIPE
        remarks:        ****************************
        remarks:        * THIS OBJECT IS MODIFIED
        remarks:        * Please note that all data that is generally regarded as personal
        remarks:        * data has been removed from this object.
        remarks:        * To view the original object, please query the RIPE Database at:
        remarks:        * http://www.ripe.net/whois
        remarks:        ****************************
        
        IPv4 subnets for AS43515 :-
        
        208.65.154.0/24
        208.65.155.0/24
        208.117.226.0/24
        208.117.234.0/24
        208.117.235.0/24
        208.117.241.0/24
        208.117.243.0/24
        208.117.244.0/24
        208.117.253.0/24
        104.237.160.0/19
        104.237.160.0/23
        104.237.160.0/24
        104.237.161.0/24
        104.237.162.0/23
        104.237.162.0/24
        104.237.164.0/23
        104.237.164.0/24
        104.237.165.0/24
        104.237.166.0/23
        104.237.166.0/24
        104.237.167.0/24
        104.237.168.0/23
        104.237.168.0/24
        104.237.169.0/24
        104.237.170.0/23
        104.237.170.0/24
        104.237.171.0/24
        104.237.172.0/23
        104.237.172.0/24
        104.237.173.0/24
        104.237.174.0/23
        104.237.174.0/24
        104.237.175.0/24
        104.237.176.0/23
        104.237.176.0/24
        104.237.177.0/24
        104.237.178.0/23
        104.237.178.0/24
        104.237.179.0/24
        104.237.180.0/23
        104.237.180.0/24
        104.237.181.0/24
        104.237.182.0/23
        104.237.182.0/24
        104.237.183.0/24
        104.237.184.0/23
        104.237.184.0/24
        104.237.185.0/24
        104.237.186.0/23
        104.237.186.0/24
        104.237.187.0/24
        104.237.188.0/23
        104.237.188.0/24
        104.237.190.0/23
        208.117.236.0/24
        208.117.238.0/24
        208.117.239.0/24
        208.117.240.0/24
        208.117.242.0/24
        208.117.248.0/24
        208.117.249.0/24
        208.117.250.0/24
        208.117.251.0/24
        208.117.252.0/24
        208.117.254.0/24
        208.117.255.0/24
        216.239.60.0/24
        35.206.0.0/15
        64.15.112.0/20
        208.65.152.0/22
        208.117.224.0/19
        208.117.254.0/24
        208.117.253.0/24
        208.117.252.0/24
        208.117.251.0/24
        208.117.249.0/24
        208.117.248.0/24
        208.117.250.0/24
        208.117.247.0/24
        208.117.246.0/24
        208.117.245.0/24
        208.117.244.0/24
        208.117.243.0/24
        208.117.242.0/24
        208.117.241.0/24
        
        IPv6 subnets for AS43515 :-
        
        2001:4860:4805::/48
        2620:11a:a011::/48
        2620:11a:a012::/48
        2620:11a:a013::/48
        2620:11a:a014::/48
        2620:11a:a015::/48
        2620:11a:a016::/48
        2620:11a:a017::/48
        2620:11a:a018::/48
        2620:11a:a019::/48
        2620:11a:a01a::/48
        2620:11a:a01b::/48
        2620:11a:a01c::/48
        2620:11a:a01d::/48
        2620:11a:a01e::/48
        2620:11a:a01f::/48
        2620:11a:a020::/48
        2620:11a:a021::/48
        2620:11a:a022::/48
        2620:11a:a023::/48
        2620:11a:a024::/48
        2620:11a:a025::/48
        2620:11a:a026::/48
        2620:11a:a027::/48
        2620:11a:a028::/48
        2620:11a:a029::/48
        2620:11a:a02a::/48
        2620:11a:a02b::/48
        2620:11a:a02c::/48
        2620:11a:a02d::/48
        2620:11a:a02e::/48
        2620:11a:a02f::/48
        2620:11a:a030::/48
        2620:11a:a031::/48
        2620:11a:a032::/48
        2620:11a:a033::/48
        2620:11a:a034::/48
        2620:11a:a035::/48
        2620:11a:a036::/48
        2620:11a:a037::/48
        2620:11a:a038::/48
        2620:11a:a039::/48
        2620:11a:a03a::/48
        2620:11a:a03b::/48
        2620:11a:a03c::/48
        2620:11a:a03d::/48
        2620:11a:a03e::/48
        2620:11a:a03f::/48
        2620:11a:a040::/48
        2620:11a:a041::/48
        2620:11a:a042::/48
        2620:11a:a043::/48
        2620:11a:a044::/48
        2620:11a:a045::/48
        2620:11a:a046::/48
        2620:11a:a047::/48
        2620:11a:a048::/48
        2620:11a:a049::/48
        2620:11a:a04a::/48
        2620:11a:a04b::/48
        2620:11a:a04c::/48
        2620:11a:a04d::/48
        2620:11a:a04e::/48
        2620:11a:a04f::/48
        2620:11a:a050::/48
        2620:11a:a051::/48
        2620:11a:a052::/48
        2620:11a:a053::/48
        2620:11a:a054::/48
        2620:11a:a055::/48
        2620:11a:a056::/48
        2620:11a:a057::/48
        2620:11a:a058::/48
        2620:11a:a059::/48
        2620:11a:a05a::/48
        2620:11a:a05b::/48
        2620:11a:a05c::/48
        2620:11a:a05d::/48
        2620:11a:a05e::/48
        2620:11a:a05f::/48
        2620:11a:a060::/48
        2620:11a:a061::/48
        2620:11a:a062::/48
        2620:11a:a063::/48
        2620:11a:a064::/48
        2620:11a:a065::/48
        2620:11a:a066::/48
        2620:11a:a067::/48
        2620:11a:a068::/48
        2620:11a:a069::/48
        2620:11a:a06a::/48
        2620:11a:a06b::/48
        2620:11a:a06c::/48
        2620:11a:a06d::/48
        2620:11a:a06e::/48
        2620:11a:a06f::/48
        2620:11a:a070::/48
        2620:11a:a071::/48
        2620:11a:a072::/48
        2620:11a:a073::/48
        2620:11a:a074::/48
        2620:11a:a075::/48
        2620:11a:a076::/48
        2620:11a:a077::/48
        2620:11a:a078::/48
        2620:11a:a079::/48
        2620:11a:a07a::/48
        2620:11a:a07b::/48
        2620:11a:a07c::/48
        2620:11a:a07d::/48
        2620:11a:a07e::/48
        2620:11a:a07f::/48
        2620:11a:a080::/48
        2620:11a:a081::/48
        2620:11a:a082::/48
        2620:11a:a083::/48
        2620:11a:a084::/48
        2620:11a:a085::/48
        2620:11a:a086::/48
        2620:11a:a087::/48
        2620:11a:a088::/48
        2620:11a:a089::/48
        2620:11a:a08a::/48
        2620:11a:a08b::/48
        2620:11a:a08c::/48
        2620:11a:a08d::/48
        2620:11a:a08e::/48
        2620:11a:a08f::/48
        2620:11a:a090::/48
        2620:11a:a091::/48
        2620:11a:a092::/48
        2620:11a:a093::/48
        2620:11a:a094::/48
        2620:11a:a095::/48
        2620:11a:a096::/48
        2620:11a:a097::/48
        2620:11a:a098::/48
        2620:11a:a099::/48
        2620:11a:a09a::/48
        2620:11a:a09b::/48
        2620:11a:a09c::/48
        2620:11a:a09d::/48
        2620:11a:a09e::/48
        2620:11a:a09f::/48
        2620:11a:a0a0::/48
        2620:11a:a0a1::/48
        2620:11a:a0a2::/48
        2620:11a:a0a3::/48
        2620:11a:a0a4::/48
        2620:11a:a0a5::/48
        2620:11a:a0a6::/48
        2620:11a:a0a7::/48
        2620:11a:a0a8::/48
        2620:11a:a0a9::/48
        2620:11a:a0aa::/48
        2620:11a:a0ab::/48
        2620:11a:a0ac::/48
        2620:11a:a0ad::/48
        2620:11a:a0ae::/48
        2620:11a:a0af::/48
        2620:11a:a0b0::/48
        2620:11a:a0b1::/48
        2620:11a:a0b2::/48
        2620:11a:a0b3::/48
        2620:11a:a0b4::/48
        2620:11a:a0b5::/48
        2620:11a:a0b6::/48
        2620:11a:a0b7::/48
        2620:11a:a0b8::/48
        2620:11a:a0b9::/48
        2620:11a:a0ba::/48
        2620:11a:a0bb::/48
        2620:11a:a0bc::/48
        2620:11a:a0bd::/48
        2620:11a:a0be::/48
        2620:11a:a0bf::/48
        2620:11a:a0c0::/48
        2620:11a:a0c1::/48
        2620:11a:a0c2::/48
        2620:11a:a0c3::/48
        2620:11a:a0c4::/48
        2620:11a:a0c5::/48
        2620:11a:a0c6::/48
        2620:11a:a0c7::/48
        2620:11a:a0c8::/48
        2620:11a:a0c9::/48
        2620:11a:a0ca::/48
        2620:11a:a0cb::/48
        2620:11a:a0cc::/48
        2620:11a:a0cd::/48
        2620:11a:a0ce::/48
        2620:11a:a0cf::/48
        2620:11a:a0d0::/48
        2620:11a:a0d1::/48
        2620:11a:a0d2::/48
        2620:11a:a0d3::/48
        2620:11a:a0d4::/48
        2620:11a:a0d5::/48
        2620:11a:a0d6::/48
        2620:11a:a0d7::/48
        2620:11a:a0d8::/48
        2620:11a:a0d9::/48
        2620:11a:a0da::/48
        2620:11a:a0db::/48
        2620:11a:a0dc::/48
        2620:11a:a0dd::/48
        2620:11a:a0de::/48
        2620:11a:a0df::/48
        2620:11a:a0e0::/48
        2620:11a:a0e1::/48
        2620:11a:a0e2::/48
        2620:11a:a0e3::/48
        2620:11a:a0e4::/48
        2620:11a:a0e5::/48
        2620:11a:a0e6::/48
        2620:11a:a0e7::/48
        2620:11a:a0e8::/48
        2620:11a:a0e9::/48
        2620:11a:a0ea::/48
        2620:11a:a0eb::/48
        2620:11a:a0ec::/48
        2620:11a:a0ed::/48
        2620:11a:a0ee::/48
        2620:11a:a0ef::/48
        2620:11a:a0f0::/48
        2620:11a:a000::/40
        2620:11a:a0f1::/48
        2620:11a:a0f2::/48
        2620:11a:a0f3::/48
        2620:11a:a0f4::/48
        2620:11a:a0f5::/48
        2620:11a:a0f6::/48
        2620:11a:a0f7::/48
        2620:11a:a0f8::/48
        2620:11a:a0f9::/48
        2620:11a:a0fa::/48
        2620:11a:a0fb::/48
        2620:11a:a0fc::/48
        2620:11a:a0fd::/48
        2620:11a:a0fe::/48
        2620:11a:a0ff::/48
        
        
        Wednesday, 9 October 2019 at 09:39:58 British Summer Time
        

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • NogBadTheBadN Offline
          NogBadTheBad
          last edited by NogBadTheBad

          It would look something like this:-

          You'd also need IPv6 rules if you run dual stack.

          Screenshot 2019-10-09 at 09.50.23.png

          Screenshot 2019-10-09 at 09.52.30.png

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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