Thread: tun device
View Single Post
Old 20th September 2008
zomo zomo is offline
Port Guard
 
Join Date: Sep 2008
Posts: 25
Default

Ok, my pf.conf:

altq on tun0 bandwidth 97Mb hfsc queue{ std_tun0 user_tun0 ack_tun0 }
queue std_tun0 bandwidth 20Kb priority 1 hfsc(upperlimit 220Kb default)
queue ack_tun0 bandwidth 128Kb qlimit 500 hfsc(realtime 128Kb upperlimit 256Kb)
queue user_tun0 bandwidth 512Kb qlimit 500 hfsc(upperlimit 1024Kb)
pass in quick on tun0 all tag asd queue (user_tun0 ack_tun0)
pass out quick on $EXT all tagged asd queue (user_ext ack_ext)

With this configuration seems to everything works fine

Sep 20 13:53:27.297424 rule 9/(match) [uid 0, pid 302] pass in on tun0: 172.16.0.2.1411 > 216.239.59.104.80: [|tcp] (DF) (ttl 128, id 15716, len 48)
Sep 20 13:53:27.297475 rule 10/(match) [uid 0, pid 302] pass out on re0: 83.16.229.106.52943 > 216.239.59.104.80: [|tcp] (DF) (ttl 127, id 62719, len 48)


But i cant reach transfer rate which is defined on altq definition. For example when i try to download something i have smth about 20 KB/s? Another thing, this traffic on tun0 is also getting to my standard queue on $LAN physical interface(i have little leaks on standard queue (std_lan), from my network which is no yet running with pppoe). How i check the traffic is getting to std_lan queue on $LAN interface, when i trying to download something via tun0, std_lan start increasing...I hope you understand me

# pftop
root_tun0 97M hfsc 0 0 0 0 0 0 0 0
std_tun0 20000 hfsc 0 0 0 0 0 0 0
ack_tun0 128K hfsc 174 8116 0 0 0 1 79
user_tun0 512K hfsc 2831 3890466 0 0 0 16 23820
root_em0 97M hfsc 0 0 0 0 0 0 0 0
std_lan 20000 hfsc 3887 5090192 6 4582 8 21 27507
Thanks for help
Reply With Quote