Subject: Re: NAT + ALTQ + Samba problem
To: None <netbsd-help@netbsd.org>
From: Dawid Busse <darthbula@o2.pl>
List: netbsd-help
Date: 07/31/2006 00:32:10
> Perhaps something like this:
>
> interface wm0 bandwidth 1G hfsc
> class hfsc wm0 wan_class root pshare 0 grate $DSL_DOWNSTREAM_RATE default
> <sub-classes of wan_class and filters for Internet traffic>
> class hfsc wm0 lan_class root pshare 100 grate 999M
> <filters matching lan-to-lan traffic push stuff into lan_class>
>
> Jonathan Kollasch
Thanks for reply, switched to hfsc - works fine, default should be leaf class ;), but i'm little confused:
my altq.conf:
interface wm0 bandwidth 100M hfsc
class hfsc wm0 wan_class root pshare 4 grate 4M
class hfsc wm0 high_class wan_class pshare 0 grate 50K
filter wm0 high_class 0 0 0 0 1
filter wm0 high_class 0 0 0 53 17
filter wm0 high_class 0 53 0 0 17
class hfsc wm0 http wan_class pshare 1 grate 2M
filter wm0 http 0 80 0 0 6
filter wm0 http 0 0 0 80 6
filter wm0 http 0 443 0 0 6
filter wm0 http 0 0 0 443 6
class hfsc wm0 mail wan_class pshare 1 grate 500K
filter wm0 mail 0 0 0 110 6
filter wm0 mail 0 110 0 0 6
filter wm0 mail 0 0 0 995 6
filter wm0 mail 0 995 0 0 6
filter wm0 mail 0 25 0 0 6
filter wm0 mail 0 0 0 25 6
class hfsc wm0 ftp wan_class pshare 1 grate 900K
filter wm0 ftp 0 0 0 20 6
filter wm0 ftp 0 20 0 0 6
filter wm0 ftp 0 0 0 21 6
filter wm0 ftp 0 21 0 0 6
class hfsc wm0 chat wan_class pshare 0 grate 50K
filter wm0 chat 0 0 0 8074 6
filter wm0 chat 0 8074 0 0 6
filter wm0 chat 0 5222 0 0 6
filter wm0 chat 0 0 0 5222 6
class hfsc wm0 other wan_class pshare 1 grate 500K default
class hfsc wm0 lan_class root pshare 96 grate 76M
filter wm0 lan_class 0 0 192.168.1.1 0 0
filter wm0 lan_class 192.168.1.1 0 0 0 0
setting grate 96M in lan_class results in no bandwidth error, i don't understand where 20M is gone?
Regards