LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2003, 04:57 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Arrow Site's block problem !!!


Hi

I have setup one cable server in our ISP.we have total 400 client.

and we are useing 512kbps.

now problem is,

some of our client used some site like,

www.imesh.com,www.kazaa.com etc.for up loading and downloading.

now they reseved our 50% bandwidth.and our net speed get down.

now i want to control them.

for preventing them,i had set some rules in ipchains with,
--------------------------------------

port sitename protocol

1214 kazaa.com tcp/udp

4329 imesh.com tcp

1214 morpheaus tcp/udp
----------------------------------------

i had block all site's port what they using.

but still my net speed down.my other user can't acces net with average speed.


question is,

1) is there any other way to to prevent them for accessing bandwidth....
2) How can know ,how much bandwidth are used by one user.

3) is there any good project for managing bandwidth and controling bandwidth...


Please help ,i am really hadik with this.....
-------------------
Hitesh
 
Old 04-10-2003, 10:08 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
I don't know about ipchain, but iptables, you can block something without giving a port number like :
$IPTABLES -A INPUT -s kazaa.com -p tcp -j DROP

but there's probably something in ipchain to do the same.
 
Old 04-10-2003, 11:04 AM   #3
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hi

Thanks,

I think i did same thing with ipchains,
here is,

/sbin/ipchains -A input -s 0/0 -d 0/0 1214 -p tcp DENY
/sbin/ipchains -A input -s 0/0 -d 0/0 1214 -p udp DENY

/sbin/ipchains -A input -s 0/0 -d 0/0 4329 -p tcp DENY

all rules i had apply as above for rest of sites...

but still no change in net speed....

one more,if i set some rules for IPTABLE ,then is this make any changes in ipchains?or can i set some rules in IPTABLE?

or if any one think i had set wrong rules then suggest me right one.......

plz help me....

i was feel headik????

-----------------
Hitesh
 
Old 04-10-2003, 05:26 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
I'm not sure what you're trying to do.
You're hosting website or something and kazaa try to access it? Blocking kazaa.com will not help, since the trafic is generated by routeur.
Try to get port list used by these router (run kazaa, then look at the trafic) and block these ports.
However, this will not help you a lot, because Kazaa 2.0 is doing search on port 80, too.
You better ask money to your client if they use too much bandwidth.
 
Old 04-11-2003, 08:49 AM   #5
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hi
I had tried thi but still facing problem...

can u give port of this two sites,bec'a i am trying to block this sites.....

1)www.kazaa.com
2)www.imesh.com

so please do search for me and post the port number...

Thanks in Adv,

Hitesh
 
Old 07-28-2003, 09:31 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think that's what's been said already. Don't try to block a port, block the site where the traffic is going.

ports can be changed, where if you check the hostname of the connection and block that it will not matter what port they try to use.
 
Old 07-29-2003, 05:33 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IMO you should start with bandwidth monitoring: Google for the "MRTG" (or search Freshmeat for "bandwidth") and LARTC (Advanced Routing) websites. As mentioned in other LQ threads (search) P2P protocols like KaZaA v2 don't use just one port but scan a range for acceptable ones.
 
Old 07-30-2003, 12:23 AM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
I heard that the new Kazaa now use http port to do search, so it's nearly impossible to block.
Is someone know where Kazaa protocol info can be found?
 
Old 07-30-2003, 08:46 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you might need to setup a proxy to catch the port 80 traffic.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot problem-block dev. davideichmann Linux - Software 6 05-31-2005 03:53 AM
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 06:58 PM
Grub problem : not found or not a block device bennethos Debian 1 01-04-2005 03:54 PM
Another 2.6.8.1 problem, unknown-block(3,65) KMcD Slackware 22 10-07-2004 07:40 AM
the site's img tags could use title and/or alt text akaBeaVis LQ Suggestions & Feedback 5 08-03-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:12 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