Re: ipfw bw nat

From: Bernd Walter <ticso(at)cicely12.cicely.de>
Date: Wed, 15 Oct 2003 15:11:26 +0200

On Wed, Oct 15, 2003 at 02:27:12PM +0200, Otto Kucera wrote:
> hallo!
>
> ich hab ein seltsames problem. da mir durch ftp downloads immer die
> ganze bandbreite draufgeht wollt ich das mal limitieren. funktioniert
> eigentlich auch. aber dort wo die ipfw rules wirken komm ich über nat
> nicht druch????
>
> meine ipf.rules sind sicher nicht das problem da mir meine ipfw.rules
> immer den weg ins internet abdrehen.
>
> /etx/ipnat.rules:
>
> map fxp0 192.168.0.0/24 -> 80.110.48.215/32
> map fxp0 10.1.0.0/24 -> 80.110.48.215/32
>
> /etc/ipfw.rules:
>
> /sbin/ipfw -f flush
> /sbin/ipfw pipe 1 config bw 128Kbit/s
> /sbin/ipfw pipe 2 config bw 348Kbit/s
> /sbin/ipfw add pipe 1 tcp from any to any 1025-65535 via fxp0 (ftp am

in via fxp wäre besser, weil sonst ein und ausgehender Traffic durch die
Regel erfasst wird.

> gateway)
> /sbin/ipfw add pipe 2 tcp from 10.1.0.0/24 to any 80
>
> das sind mal meine fast and dirty rules ...
>
> hat jemand eine idee??

sysctl net.inet.ip.fw.one_pass=0

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso(at)bwct.de                                  info(at)bwct.de
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 15 Oct 2003 - 15:12:20 CEST

search this site