LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Audio/Video restriction through IPtables (https://www.linuxquestions.org/questions/linux-security-4/audio-video-restriction-through-iptables-554560/)

saifurab 05-17-2007 03:28 AM

Audio/Video restriction through IPtables
 
Dear Experts,

My network users use lots of streaming websites like youtube.com, video.google.com, rapidshare.com etc.

Please help me, how can i stop streaming (Audio/Video) clips through iptables without restricting these websites

REgards
Saif ur Rab

win32sux 05-17-2007 01:19 PM

the only way this would be feasible with vanilla iptables is if all those videos were streamed from some fixed port/range (or some other characteristic you could match)... i just did a quick netstat while watching a video on youtube and it seemed to me it was getting streamed via port 80 (HTTP) on the server... =/

the optimal way to filter this is with a proxy server... you could set it to, for example, deny access to any URLs that contain flash video/animation extensions (.swf, etc.)... in squid (the most popular proxy server for linux) this is easily done using ACLs (look into the urlpath_regex one)...

http://www.visolve.com/squid/squid24...ntrols.php#acl


All times are GMT -5. The time now is 06:52 PM.