FreeBSD 7.1 - PF ALTQ - HFSC prestalo fungovat

Gabriel gabriel at maxpark.cz
Mon Jan 19 21:46:23 CET 2009


Dost podozrive je prave to, ze sa tie ruly vobec neaplikuju na download,  
ale evidentne sa aplikuju na upload. Vid nizsie.

Trochu som prekopaval konfig, ale ziadne zlepsenie nenastalo, stale to  
nefunguje ako ma.


wifi subnet -----> wifi_iface (rl0) # ext_iface (rl1) -----> internet

---
queue root_rl0 on rl0 bandwidth 100Mb priority 0 {wifi_dflt,  
wifi_download, wifi_upload}
queue  wifi_dflt on rl0 bandwidth 10Mb hfsc( red ecn default realtime 1Mb  
upperlimit 10Mb )
queue  wifi_download on rl0 bandwidth 20Mb hfsc( red ecn realtime 10Mb  
upperlimit 20Mb ) {wf_201_down, wf_202_down, wf_203_down }
queue   wf_201_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.55Mb )
queue   wf_202_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.51Mb )
queue   wf_203_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.02Mb )
queue  wifi_upload on rl0 bandwidth 1Mb hfsc( red ecn realtime 500Kb  
upperlimit 1Mb ) {wf_201_up, wf_202_up, wf_203_up }
queue   wf_201_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 128Kb )
queue   wf_202_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 128Kb )
queue   wf_203_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 96Kb )

pass out quick on rl0 inet from any to 192.168.10.201 flags S/SA keep  
state queue wf_201_down
pass in quick on rl0 inet from 192.168.10.201 to any flags S/SA keep state  
queue wf_201_up
pass out quick on rl0 inet from any to 192.168.10.202 flags S/SA keep  
state queue wf_202_down
pass in quick on rl0 inet from 192.168.10.202 to any flags S/SA keep state  
queue wf_202_up
pass out quick on rl0 inet from any to 192.168.10.203 flags S/SA keep  
state queue wf_203_down
pass in quick on rl0 inet from 192.168.10.203 to any flags S/SA keep state  
queue wf_203_up
---


pfctl -vvsq output:

---
queue  wifi_download on rl0 bandwidth 20Mb hfsc( red ecn realtime 10Mb  
upperlimit 20Mb ) {wf_201_down, wf_202_down, wf_203_down }
   [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:       
0 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]
queue   wf_201_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.55Mb )
   [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:       
0 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]
queue   wf_202_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.51Mb )
   [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:       
0 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]
queue   wf_203_down on rl0 bandwidth 64Kb hfsc( red ecn realtime 32Kb  
upperlimit 1.02Mb )
   [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:       
0 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]

queue  wifi_upload on rl0 bandwidth 1Mb hfsc( red ecn realtime 500Kb  
upperlimit 1Mb ) {wf_201_up, wf_202_up, wf_203_up }
   [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:       
0 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]
queue   wf_201_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 128Kb )
   [ pkts:        962  bytes:     340131  dropped pkts:     52 bytes:    
9983 ]
   [ qlength:   0/ 50 ]
   [ measured:     2.6 packets/s, 1.95Kb/s ]
queue   wf_202_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 128Kb )
   [ pkts:       1135  bytes:     820238  dropped pkts:      2 bytes:    
1897 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.4 packets/s, 3.68Kb/s ]
queue   wf_203_up on rl0 bandwidth 8Kb hfsc( red ecn realtime 4Kb  
upperlimit 96Kb )
   [ pkts:       1552  bytes:     872840  dropped pkts:    133 bytes:  
125793 ]
   [ qlength:   0/ 50 ]
   [ measured:     0.0 packets/s, 0 b/s ]
---


Nejake napady co s tym? Na stfw som toho zrovna moc nenasiel k tejto teme  
:(

Dik.

G



More information about the Users-l mailing list