per ip shapping in freebsd 6.2
here's the thing. I know in pf one can limit bw for certain programs (www, ftp...etc) but can one limit the same (or other) programs per ip?
for instance: assume NAT is configured and working. now... consider this... limit 192.168.0.2 (first pc) to have a total of 64 kB down and 128 kB up; 192.168.0.3 down 128 up 64 (kB).
i know i can limit the bw at the router, but that limits the bw (in kB or whatever) for the entire lan. say i do 4 mb down 2 mb up at the router....and say i have 3 pc's, they all have 4 down and 2 up, but that's not what i want. as i said before i'm in need of per ip shapping and it wiuld be best to have programs shapping as well (www, ftp, etc)
for instance pc1 on the lan has a total of 2mb down / 2 mb up, but has a limit of 128 kB for www and a limit of 1.5 mb up/down for ftp....whille the second pc has say 2mb for www and 128 kB for ftp....something like this.
i'm currently using pf, i've read the openbsd handbook, the manual, and also Peter N. M. Hansteen "Firewalling with OpenBSD's PF packet filter". searched goole but maybe i provide the wrong search parameters....anyway, if any of you have a solution pls, don't be shy :P.
this is a software solution. i have found hardware solution for this but can;t really afford it.
|