Ipfw

от ILuxWiki

Направо към: навигация, търсене

Съдържание

Ограничаване на трафика

Използване на приоритетни канали

ipfw pipe 1 config bw 256Kbit/s
ipfw queue 1 config pipe 1 weight 10
ipfw queue 2 config pipe 1 weight 90
ipfw add 100 queue 1 tcp from limited_network to me
ipfw add 200 queue 2 tcp from any to me

LOOKUP таблици

Синтаксис

    ipfw table number add addr[/masklen] [value]
    ipfw table number delete addr[/masklen]
    ipfw table number flush
    ipfw table number list

Примери

ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32
ipfw table 1 add x.x.x.x/32

ipfw add 300 deny ip from table(1) to any