LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2003, 06:54 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Lightbulb how to reduce traffic on eth0 ?


Hello,

How to control traffic in eth0?

I have cable server ,and i have two eth( one eth0 & eth1)
my client accessing net through eth0 ,means they login and then access it.
so every client also login in yahoo meessanger.
I want to control traffic on eth0.
i aslo want to fix the limit of eth0 traffic ,how it will be.?

and also is it possible to fix only 35 or 40 yahoo messanger client can able to login at my cable server.
and if 46 num client try to login then he should get some mess.

why i am doing bec'z my all most client asseccing yahoo mess. so my server get down.

is it possible to create virtual eth card for eth0.so traffic should divided on two eth.(like 50 % on eth0 and 50% on virtual eth0)

so i want to do three things
1) how can make virtual eth.?and how traffic can reduse with virtaul card.?

2)how to lfix limit with 35 or 40 yahoo mess. client on eth0?

3)and how to divided traffic on eth0.?



Thanx in Adv.

Hitesh

Last edited by hitesh_linux; 07-25-2003 at 06:56 AM.
 
Old 07-25-2003, 07:36 AM   #2
cwolf
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Sun Solaris 7/8/9, Fedora Core 3
Posts: 63

Rep: Reputation: 15
I think you should read this:
http://www.tldp.org/LDP/nag2/x-087-2-accounting.html
 
Old 07-25-2003, 08:14 AM   #3
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hi,

I had visit that link,but asking some thing should me on my linux box. when i check it it not found.

i had check in /proc/net/ip_acct file
it not their

and i am using redhat 9.0

now i don't what why it's not displaying.

please suggest me, how to find ip_acct file

bec'z it show some like this on that document !!!

---------------------------------------------------------------------------------------
To activate the Linux IP accounting feature, you should first see if your Linux kernel is configured for it. Check to see if the /proc/net/ip_acct file exists. If it does, your kernel already supports IP accounting. If it doesn't, you must build a new kernel, ensuring that you answer Y to the options in 2.0 and 2.2 series kernels:

Networking options --->
[*] Network firewalls
[*] TCP/IP networking
...
[*] IP: accounting

or in 2.4 series kernels:

Networking options --->[*] Network packet filtering (replaces ipchains)
---------------------------------------------------------------------------------------

now what to do?

Thank again

hitesh
 
Old 07-26-2003, 09:52 AM   #4
cwolf
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Sun Solaris 7/8/9, Fedora Core 3
Posts: 63

Rep: Reputation: 15
I think, if you have a 2.4 Kernel the named file will not exist.
At least on my Red Hat 8.0 box, the rules in the manual work and I can see how much data has been transmitted.
 
Old 07-27-2003, 01:36 PM   #5
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Thanks Cwolf,

so can i install ip_accouting rpm in redhat 9.0 with all depens.

then which rpm ip_accu.x.x. version support with rhl 9.0

thanks again

Hitesh
 
Old 07-28-2003, 03:32 AM   #6
cwolf
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Sun Solaris 7/8/9, Fedora Core 3
Posts: 63

Rep: Reputation: 15
I think you don't need to install any package.
(Someone correct me if I'm wrong, please.)
 
Old 02-21-2004, 01:44 PM   #7
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hi,

Thank for reply,

can any one guide me where can i get that package?


pls help me....


Thank you,
 
Old 02-21-2004, 02:06 PM   #8
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
If you combine iptables with ipconfig, etc. and scripting, you can do several things.

You can create a silent running script. It could use the eval command and the grep pipe or something to check data flow firstly. Iptables is a powerful firewall/router, it can refuse packets, forward it like a router, masq it, etc. (its good for Network Address Translation) although it hasn't gotten to the stage of tracking invididual programs yet.

Your clients is it? Is the eth0 a gateway or a router already something, transferring data?

And yes, referring back to scripts you can have it check and set variables such that if more than 40 yahoo messenger connections are open, for example, it will drop a certain port it for any subsequent connections. It will keep record or something (with a constant repeat function) for which connections are open (using grep or eval on a separate file) so for example it will not affect non-Yahoo ports, or the first 40 Yahoo Messenger ports which can be updated by the script.
 
Old 07-02-2004, 02:02 AM   #9
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Thanx natalinasmpf,

can any one have tired this before? i am not quit good in shell scripting is there any other way to do this or how do i add in iptables or ipchains.

Thanx

-Hitesh
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
keeping traffic numbers for ppp0 or eth0 interface sensovision Linux - Networking 7 03-10-2005 05:41 PM
knetload reports constant traffic on eth0 + cable modem Freon Linux - Networking 3 11-30-2004 11:05 PM
reduse kbs of pic's j.vilon Linux - Software 1 10-04-2004 02:17 PM
multicast traffic from eth0 ?? zarniwoop Linux - Networking 5 04-02-2004 04:25 AM
Monitoring network traffic on eth0? AgentSmith Linux - Networking 5 01-27-2004 04:49 PM

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

All times are GMT -5. The time now is 01:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration