From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 00:51:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B9C16A4CE for ; Fri, 6 Feb 2004 00:51:07 -0800 (PST) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28D5043D3F for ; Fri, 6 Feb 2004 00:51:05 -0800 (PST) (envelope-from sjaaknabuurs@citytower.com) Received: from citytower by smtp.hccnet.nl id i168p2KH023119 (8.12.10/2.03); Fri, 6 Feb 2004 09:51:03 +0100 (MET) Message-ID: <00e101c3ec8e$59b0b550$3303a8c0@citytower> From: "Sjaak Nabuurs" To: Date: Fri, 6 Feb 2004 09:51:00 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00DD_01C3EC96.BA03B300" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Routing 4 network cards X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 08:51:07 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00DD_01C3EC96.BA03B300 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ------=_NextPart_000_00DD_01C3EC96.BA03B300 Content-Type: text/plain; name="wirless.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="wirless.txt" Wireless USERS Wireless USERS W W W W W W W W W W W = W |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| = |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| = |-| |-| 192.168.3.2-254 192.168.4.2-254 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W 192.168.3.1 W = 192.168.4.1 |---------| |--------| 8Mbit |------| WIRELESS | | | | INTERNET =3D=3D| A |W~~~~~~~~~~~~W|FreeBSD1 |W~~~~~~~~~~~~W|FreeBSD2| = |------| 192.168.0.1 | |192.168.2.1 | | |192.168.0.138 |---------| 192.168.2.2|--------| | | | | |192.168.1.1 = |192.168.5.1 | | | | | | 192.168.0.150| | | |------| |------| |------| |HOME | |HOME 1| |HOME 2| =20 |------| |------| |------| A =3D Router Acatel DSL W =3D Antene |-|=20 |-| =3D Wireless User (20 Wireless users) I hoop the drawing is readable ! The Facts : OS FreeBSD 5.2 (is it stable for this problem or better to use 4.x) With 4 nic's inside RL0 =3D 192.168.0.1 =20 RL1 =3D 192.168.1.1 RL2 =3D 192.168.2.1 RL4 =3D 192.168.3.1 I like to connect RL1/2/3 to RL0 (internet) HOME1 and HOME2 are the system administrators and need to manage the = whole network include the users Everybody need access to the internet I like to have a start how to setup FreeBSD 1 I like to use dummynet(compiled and works very nice) to manage traffic = let's say=20 192.168.3.1/26 100Kb/s=20 192.168.3.64/26 200Kb/s=20 192.168.3.128/26 300Kb/s 192.168.3.192/26 400Kb/s Count every user with ipfw count --------------------------- #!/usr/local/bin/bash for ((a=3D2; a<=3D254; a++)) do IPCOUNT =3D "10"$a"0 add count tcp from 192.168.3.$a to any" ipfw $IPCOUNT=20 done ---------------------------- And now the question about FreeBSD 1 (forget FreeBSD2). Give me a good hint how to set this up with ipfw and NAT I googled many but ther's not that much about information about 3 or = more nic with freeBSD. I think I have to use NAT, but can i use it in combination with ipfw to = dummynet out/ingoing traffic over the nic RL1/2/3 And how can i "HOME1" go accross the whole network RL0/2/3=20 Sorry for my English and I hope I give anough explanation about my plan. Thanks anyway for looking at my problem. ------=_NextPart_000_00DD_01C3EC96.BA03B300--