iptables and youtube

Posted: April 5, 2009 in Linux
Tags: ,

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 -j DROP
/sbin/iptables -A FORWARD -d -j DROP

  1. cat says:

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

  2. ipen says:

    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 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

    • rumytaulu says:

      Pen, mungkin bisa coba :

      /sbin/iptables -A OUTPUT -s -d -j DROP
      /sbin/iptables -A FORWARD -s -d -j DROP

  3. ipen says:

    Thx, it’s work

  4. rumytaulu says:

    Kudos to cat for a good and easy Windows+KIS tutorial, here’s the link :

  5. cat says:

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s