LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2006, 06:38 PM   #1
jorge_ivan
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
how to block music ports in linux


Hi, I am a network administrator and I would like to know how to block the music ports in a red hat linux server, because some users are using their workstations to listen music on line and using up the network bandwith.
thanks in advance....
 
Old 09-26-2006, 06:49 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can look through this list for audio and video ports to block. Not sure if that will get them all, but it's a start...
 
Old 09-27-2006, 10:29 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
jorge..

Code:
iptables -A INPUT -p tcp -s <client-ip> --dport ! 80 -j LOG
iptables -A INPUT -p tcp -s <client-ip> --dport ! 53 -j LOG
With rule like the above ones you can log all the packets that are not used for browsing & name conversion & further block them to stop unnecesary bandwidth usage. (here i am assuming that you are not providing any other services to your clients; & if you have some other services then you could probably run another rule to bypass those packets as well)

This is basically for montoring about what are the packets are traversing through your firewall.

You got to go through your logs & then make a note of other ports & block them at FORWARD / INPUT (depending on the way your clients are being offered the internet service)

Last edited by amitsharma_26; 09-27-2006 at 11:18 AM.
 
Old 09-27-2006, 03:14 PM   #4
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
If you use some IDS like snort inline you could easily drop their authentication packets (if they listen shoutcast or something similiar), just sniff their traffick and write your own drop rule based on those packets.

That way it wouldnt matter what ports or proxies (except encrypted) they are using.

Last edited by //////; 09-27-2006 at 03:17 PM.
 
Old 09-27-2006, 03:26 PM   #5
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
If your users don't really need sound at all, you can just disable audio support on all your workstations. Might even lead to a better lab/work enviroment.
 
  


Reply



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
firewalling: should i block ports on dsl router + linux or DMZ? InTheWired Linux - Security 3 04-09-2004 08:17 AM
Ports to Block chrisfirestar Linux - General 1 10-28-2003 03:27 AM
How to Block the Ports in linux Redhat 7.2 rajeshacpt Linux - Networking 3 07-16-2003 10:59 AM
How to Block music ports JohnRide Linux - Security 1 12-02-2002 03:17 PM
how to block ports furquan Linux - Security 9 02-21-2002 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:03 AM.

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