Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2004 00:27:05 +0100
From:      "Sjaak Nabuurs" <sjaak@vsm-hosting.nl>
To:        <freebsd-net@freebsd.org>
Subject:   Routing 4 network cards for wirless network
Message-ID:  <010701c3ec3f$91633a80$3303a8c0@citytower>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0104_01C3EC47.F2E73E20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit



------=_NextPart_000_0104_01C3EC47.F2E73E20
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_0104_01C3EC47.F2E73E20--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010701c3ec3f$91633a80$3303a8c0>