iptables and youtube
2009 April 5
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
mind to show me how to do that on my comp? blocking youtube, I mean… (._. )a
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
Pen, mungkin bisa coba :
Thx, it’s work
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/
I thank **you** – I was just visualising what you show me. It’s an honour to get linked. More thanks! ^o^
Your blog is very interresting for me, i will come back here..