RES: [FUGSPBR] Bandwidth (Dinamica)

Bio )+(azarD bio em bsd-unix.com.br
Qua Jan 8 10:44:17 BRST 2003


tenta  isso por portas

#  pipeconfig:
#    {bw|bandwidth} <number>{bit/s|Kbit/s|Mbit/s|Bytes/s|KBytes/s|MBytes/s}
#    {bw|bandwidth} interface_name
#    delay <milliseconds>
#    queue <size>{packets|Bytes|KBytes}
#    plr <fraction>
#    mask {all| [dst-ip|src-ip|dst-port|src-port|proto] <number>}
#    buckets <number>}

#  pipeconfig:
#    {bw|bandwidth} <number>{bit/s|Kbit/s|Mbit/s|Bytes/s|KBytes/s|MBytes/s}
#    {bw|bandwidth} interface_name
#    delay <milliseconds>
#    queue <size>{packets|Bytes|KBytes}
#    plr <fraction>
#    mask {all| [dst-ip|src-ip|dst-port|src-port|proto] <number>}
#    buckets <number>}
#    {red|gred} <fraction>/<number>/<number>/<fraction>
#    droptail

# Traffic Shapper  porta  80  rede 192.168.33.0/28
$IPFW add pipe 70 tcp from any to any out via ep0 keep-state
$IPFW add pipe 80 tcp from any to any in via ep0 keep-state
$IPFW pipe 70 config mask src-ip 0x000000ff src-port 80 bw 10KBytes/s
$IPFW pipe 80 config mask dst-ip 0x000000ff dst-port 80 bw 20KBytes/s

veja se funciona .




















Marcello Silva Coutinho wrote:

>tente assim:
>ipfw pipe 1 config bw 128Kbit/s queue 128Kbytes
>ipfw pipe 2 config bw 128Kbit/s queue 128Kbytes
>ipfw add pipe 1 ip from $ip to any
>ipfw add pipe 2 ip from any to $ip
>
>
>
>
>  
>


_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd