[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq 1155] Re: Ipnat and altq-3.0 working together




M. A. Caballero wrote:
> I've instaled an compiled the netbsd 1.5.2 kernel with altq support
> sucessfully. It has support for ipnat and ipf, because i use this
> computer to do NAT for my intranet. This computer has two interfaces a
> ne1 and a rtk0. I've conected the ne1 (10 Mbits network card) to a adsl
> router (model officeconnect 812 of 3com) that has a 10 Mbits hub
> conection. The adsl router ATM conection is 256 Kbits download from inet
> / 128Kbits upload to inet . The rtk0 is conected to my intranet by a
> 100Mbits switch, where I've the other computers connected. NAT (ipnat)
> is working perfectly, but i can't create a sucessfully bandwitch control
> to the ne1 interface and in this maner to internet.
> 
> It's my /etc/altq.conf :
> 
> interface ne1 bandwidth 256K cbq
> class cbq ne1 root NULL pbandwidth 100
> #
> # meta classes
> #
> class cbq ne1 ctl_class root pbandwidth 4 control
> class cbq ne1 def_class root pbandwidth 95 default
> #
> class cbq ne1 vacio def_class pbandwidth 10
>         filter ne1 vacio name invacio ruleno 1 192.168.0.10 netmask
> 0xffffff00 0 0 0 6
>         filter ne1 vacio name outvacio ruleno 2 0 0 192.168.0.10 netmask
> 0xffffff00 0 6
> class cbq ne1 darksun def_class priority 7 pbandwidth 80
>         filter ne1 darksun name indarksun ruleno 3 192.168.0.20 netmask
> 0xffffff00 0 0 0 6
>         filter ne1 darksun name outdarksun ruleno 4 0 0 192.168.0.20
> netmask 0xffffff00 0 6
> 
> With this altq.conf I pretend to give more bandwith to computer with ip
> 192.168.0.20 (darksun) than to vacio, ip 192.168.0.10.
> 
> But this two sub-classes never are matched. I've verified it with
> altstat -e.
> 
> Isn't compatible NAT (ipnat) and altq (bandwidth control) or it's
> another problem, how my limited ATM conection, or union between ne1 and
> the router hub ?

Queueing disciplines in ALTQ classify packets after packets are
NATed so that they don't see the original private addresses.

-Kenjiro