nastavenie dummynet

goose goosefreebsd at pobox.sk
Sat May 22 01:06:53 CEST 2004


Zdravim,, 

tak som po precitani oprav,,za ktore moc dakujem prepisal nastavenie: 

ipfw add 1900 pipe 1 ip from 192.168.1.0/24 to any out
ipfw add 1910 pipe 2 ip from any to 192.168.1.0/24 in
ipfw pipe 1 config bw 210Kbit/s queue 32
ipfw pipe 2 config bw 210Kbit/s queue 32


# subnet1
#out
ipfw add 100 queue 3 ip from 10.1.0.0/24 to any out
ipfw pipe 3 config bw 135Kbit/s queue 24Kbytes
ipfw queue 3 config pipe 3 mask src-ip 0.0.0.255
#in
ipfw add 110 queue 4 ip from any to 10.1.0.0/24 in
ipfw pipe 4 config bw 135Kbit/s queue 24Kbytes
ipfw queue 4 config pipe 4 mask dst-ip 0.0.0.255

# subnet2
#out
ipfw add 200 queue 5 ip from 10.2.0.0/24 to any out
ipfw pipe 5 config bw 105Kbit/s queue 24Kbytes
ipfw queue 5 config pipe 5 mask src-ip 0.0.0.255
#in
ipfw add 210 queue 6 ip from any to 10.2.0.0/24 in
ipfw pipe 6 config bw 105Kbit/s queue 24Kbytes
ipfw queue 6 config pipe 6 mask dst-ip 0.0.0.255

mozem to v takejto podobe pouzit aby to splnalo svoj ucel? 

> Petr Bezděk wrote:
> 
> > Zbyněk Burget napsal(a):
> > 
> >> goose wrote:
> >>
> >>> Zdravim,,
> >>>
> >>  > # 2 subnet
> >>
> >>> #out
> >>> ipfw add 100 queue 3 ip from 10.1.0.0/24 to any
> >>> ipfw pipe 3 config bw 135Kbit/s queue 24
> >>> ipfw queue 3 config pipe 3 mask src-ip 255.255.255.255
> >>> #in
> >>> ipfw add 110 queue 4 ip from any to 10.1.0.0/24
> >>> ipfw pipe 4 config bw 135Kbit/s queue 24
> >>> ipfw queue 4 config pipe 4 mask src-ip 255.255.255.255
> >>>
> >>> # 3 subnet
> >>> #out
> >>> ipfw add 200 queue 5 ip from 10.1.0.0/24 to any
> >>> ipfw pipe 5 config bw 105Kbit/s queue 24
> >>> ipfw queue 5 config pipe 5 mask src-ip 255.255.255.255
> >>> #in
> >>> ipfw add 210 queue 6 ip from any to 10.1.0.0/24
> >>> ipfw pipe 6 config bw 105Kbit/s queue 24
> >>> ipfw queue 6 config pipe 6 mask src-ip 255.255.255.255
> >>>
> >>
> >> 2. jako mask src-ip by bylo vhodnejsi uvest asi 255.255.255.0 (nebo 
> >> podobnou, podle toho, jak vypada dany segment site)
255.255.255.255 je 
> >> jeden pocitac!!!
> > 
> > 
> > tady myslim, ze maska je v poradku - urcuje, ktere bity v IP
adrese jsou 
> > vyznacne, takze uvedenim 255.255.255.0 by se maskovalo podle C-kovych 
> > siti...
> 
> Omlouvam se, nekdy nejdriv pisu a potom myslim :-(
> Chtel jsem napsat masku 0.0.0.255 jak je uvedeno v prikladu v man
ipfw - 
> tedy presneji je tam uvedeno 0x000000ff
> Nicmene s tou maskou jsem si ted vsimnul jeste jedne hrube chyby:
> 
> 4. pro odchozi provoz, tedy queue 3 a 5 je spravne uvedena maska
src-ip, 
> ale pro prichozi provoz musi byt uvedena dst-ip
> 
> Zbynek
> 
> -- 
> FreeBSD mailing list (users-l at freebsd.cz)
> http://www.freebsd.cz/listserv/listinfo/users-l
> 

====================== REKLAMA ========================
JETHRO TULL 23.maja 2004 o 20,00
Bratislava, INCHEBA - hala C
info: +421 904 666 363, http://www.xl.sk
Predpredaj vstupeniek: http://www.ticketportal.sk, http://www.eventim.sk,
Dr. HORAK Bratislava, KIS Banska Bystrica, Bratislavske KIS
=======================================================





More information about the Users-l mailing list