How do i set up linux as firewall/bandwith limiter??

EnragedPC

Banned
Jul 27, 2000
1,496
1
0
I have 4 comps in my house all connected through a Linsys switch and sharing a DSL connection with a Cisco 678 router/modem...how do i set this up with mandrake 8.0? and what should the connections look like? ex: linux box>switch>etc?? how do i set up network to do this stuff????
 

IBuyUFO

Golden Member
Oct 9, 1999
1,717
0
76
what you want to do is call traffic shaper. I don't know how to use this but would be interested in learning to do it. There's a howto but it assumes you've done everything correctly including compiling the shaper module into the kernel. I'm not sure if I even have it compiled since I don't know what I'm looking for.
 

gaidin123

Senior member
May 5, 2000
962
1
0
You need to go out and download the iproute2 tools package. You can find it either via google or freshmeat. You will be required to recompile your kernel to add in a bunch of the queueing disciplines that the 'tc' program (traffic control) of the iproute2 package requires to run. Search google for 'linux advanced routing howto' to find the official (and updated over many of the copies found on the web) site for the howto.

I think, with the setup you described, you will have all your machines going into the Linksys switch which is then uplinked to 1 NIC in your linux router. Then, the cable modem will plug directly into a second NIC on your linux router. That forces all internet-related network traffic to go through your linux box which is exactly what you need for it to be able to route and control the traffic. This is how I have mine setup pretty much. We have a switch uplinked to a NIC in a linux box which is then uplinked to a Linksys router (for a separate wireless network we also have) which is then uplinked into a cable modem...

Gaidin
 

HJB417

Senior member
Dec 31, 2000
763
0
0
I know nothing of linux but my friend runs BSD or some form of UNIX/LINUX and he capped his sister's connection at 3kb/s using a program called lpfw, I think that's the name and the command was like bind <IP> and you can set the packet rate loss, latency and bandwidth. To bad they don't have programs like this for windows