From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Artreides muabdid muabdid@lettera.net Date: Tue, 23 Jan 2001 14:12:31 +0000 Subject: [LARTC] Please help a newbie... Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
I want to do the following:

<Cable-modem>---eth0<Router/Server>eth1-------<fucking windo=
ws client>

I've talked to a friend so I can put my linux box on his cable connection (=
128Kbit input, 64Kbit=20
output). My box will be a web server, and my friend need to access to inter=
net as transparent=20
as possible. I also want to guarantee an equal traffic amount for each comp=
uter, both=20
input/output. This must not be bounded, so if he is not online the server c=
an get all the traffic,=20
and he can get more bandwidth if the server is iddle.

The linux box is a RedHat 7.0 machine (2.2 kernel). I've been reading about=
 all this, but don't=20
have enougth knowledge to fully understand the netfilter model, etc... I pr=
omiss you I've readed=20
all HOWTOS and web pages I've found at least twenty times, and I've made so=
me=20
experiments wich didn't worked, I don't like to ask stupid questions. But I=
'm desesperated.

The idea is to use iproute2, with tc tool for traffic control, and iptables=
 to implment the=20
masquerading. I think I must upgrade my kernel to 2.4 so I can use iptables=
, and install=20
iproute2 package. I've installed the .rpm in the preview directory of RedHa=
t 7.0 distr., but don't=20
know if this is correct or need to compile the kernel with specific options=
. This is my first=20
question, a micro-howto of how I can setup my system to handle my problem.

It seems I must mark the packets with iptables, dont know the way, so I can=
 make the=20
apropiate filters over eth0 so I can diference the server traffic and the c=
lient traffic. So, my=20
second question is: =BFWhat are the commands I must execute for:
1.-Mark the packets incomming from eth1
2.-Implement the maskerading
3.-Create the classes, cbq, etc for eth0
4.-Create the filters for eth0

I've been working with this two weeks, but I can imagine how to do that. Al=
l my experiment=20
were unsucessfull.

I dont have very much experience with linux administration. Sorry if this s=
eems a little bit=20
stupid for you, but those who help me will have my eternal gratitude.

Thanks.

bashar
>>EOT

Consigue tu direcci=F3n de email gratis y permanente en http://WWW.LETT=3D
ERA.NET