[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Seeking info on multiple, simultaneous Net connections



On Sunday 02 December 2001 13:06, you wrote:
>  4. ?How to direct certain IP addresses to a specific interface (mail
> ? ? ? ?destined to a specific ISP's mailserver goes to that interface.)

To my mind this is the big problem. Better to get the bandwidth from one 
source if you can.

I'll leave the firewall rules to others more accomplished; I have enought 
trouble with my own;-)

First, you need some way of determining where your data flows are, and 
remember they will change over time.

You can set up ipchains or iptables rules that will measure this in a rough 
kind of way, and report on it with ipchains -L -v or iptables -L -v.

You probably want snapshots through the day, so run the command to dump the 
data regularly.

Probably you will want some kind of chart to eyeball; you can probably do 
this quite well with a little perl to parse the reports and produce something 
to feed into gnuplot.

gnuplot has various output options; probably an immediate display on your 
screen or a postscript file will suit you best.

I've not investigated the use of spreadsheet software; perhaps that will do a 
fine job.

Your first efforts will be an educated guess; set a default route out one 
interface (your faster one seem obvious), and static routes out the other to 
specific sites.

Unless you can find some goal-seeking software, you are going to have to keep 
an eye on it so as to be able to rectify it when the load becomes unbalanced.

I don't have any good idea of how to balance my own traffic; I guess that 
analysis of my squid logs would give be a good starting point. At a rough 
guess, the two mirror sites I use most often would either both be on one 
interface and everything else on the other, or one on each with the rest of 
my traffic a challenge.

But while I have no doubt those two sites account for most of my traffic, 
there are long periods where there's no traffic to either.

And incoming connexions are altogether another matter. If you host virtual 
websites, you need to analyze your logs and spread those sites over your 
interfaces.






-- 
Please, no off-list mail
Note: mail delivered to me is deemed to be intended for me, for my 
disposition.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]