iptables and youtube

2009 April 5
by rumytaulu

SurfNet asked me to block youtube (youtube was taking almost if not all bandwidth in our cybercafe said the owner), after some research I found that an iptables rules can help me, and since youtube owned all 208.65.153.x subnets it make things easier, so here it is:

/sbin/iptables -A OUTPUT -d 208.65.153.0/24 -j DROP
/sbin/iptables -A FORWARD -d 208.65.153.0/24 -j DROP

7 Responses leave one →
  1. 2009 April 5
    cat permalink

    mind to show me how to do that on my comp? blocking youtube, I mean… (._. )a

  2. 2009 April 6

    doh skalian jo kita tanya tre kalo mo blok cuma 1 pc user dank bemana ?
    nat kita pake

    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    skarang mo blok IP 192.168.0.4 di eth1 (local ip) tu youtube ato skalian ndak kase akses internet :)

    Qta pikir dua metode :
    1. Open All, block some
    2. Block All, Open some

    ada tips gimana dia pe iptables ? metode pertama ato kedua yg bagus
    masih rada2 bingo ini INPUT, OUTPUT, FORWARD, POSTROUTING, PREROUTING ta biasa dgn GUI (mikrotik) kwa :D

    • 2009 April 6
      rumytaulu permalink

      Pen, mungkin bisa coba :

      /sbin/iptables -A OUTPUT -s 192.168.0.4 -d 208.65.153.0/24 -j DROP
      /sbin/iptables -A FORWARD -s 192.168.0.4 -d 208.65.153.0/24 -j DROP

  3. 2009 April 7

    Thx, it’s work

  4. 2009 April 8
    rumytaulu permalink

    Kudos to cat for a good and easy Windows+KIS tutorial, here’s the link :
    http://0aku0.wordpress.com/2009/04/08/blocking-youtube-with-kis/

  5. 2009 April 8
    cat permalink

    I thank **you** – I was just visualising what you show me. It’s an honour to get linked. More thanks! ^o^

  6. 2009 May 22

    Your blog is very interresting for me, i will come back here..

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS