LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-07-2004, 02:14 PM   #1
prakashpms
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Rep: Reputation: 0
iptables rule for disabling mp3/audio files


Hi all,

I have installed a Linux firewall based on iptables. It is denying first all the services and I am later enabling the required services.

I would like to disable certain service based on the filename. For example, I want to disable download of files with .mp3, .au type of extensions. I have a rule to disable RTSP protocol. This does not help, if the songs are accesed through http.

How do I write a iptables rule based on a file type. Most of the documentation/tutorial talk about protocol based.

Regards
Prakash
 
Old 06-07-2004, 02:21 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

File names are not part of the tcp/ip protocol. A request for a file is sent as data to the server. If you want to block content then you will need a proxy server to do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux program to convert rm (real player) audio files to mp3 format des-traction Linux - Software 2 03-31-2009 07:04 PM
trouble ripping audio to MP3 files chris_11542 Linux - Software 8 12-31-2004 03:11 PM
play audio mp3 files from command line? runlevel <5 carl0ski Linux - Software 3 12-02-2004 04:58 AM
burning mp3/aug/? as audio files AnimaSola Linux - Software 3 06-06-2004 11:16 PM
Question about SetEnvIf for audio files(ram, mp3, wma..) hct224 Linux - Newbie 0 02-21-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration