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

Re: ALTQ conditioners (openBSD 3.2 stable)



The problem is I want to be able to mark packets
belonging to different Ports-Protocols (HTTP, FTP, etc)
with a different TOS values.
But the packets are not Marked with these rules below for /etc/altq.conf
Example:
interface xl0 priq
conditioner xl0 http_marker <mark 0x4>
filter xl0 http_marker ruleno 5 0 80 0 0 6
filter xl0 http_marker ruleno 5 0 0 0 80 6
conditioner xl0 httpS_marker <mark 0x8>
filter xl0 httpS_marker ruleno 4 0 443 0 0 6
filter xl0 httpS_marker ruleno 4 0 0 0 443 6
conditioner xl0 telnet_marker <mark 0x10>
filter xl0 telnet_marker ruleno 3 0 23 0 0 6
filter xl0 telnet_marker ruleno 3 0 0 0 23 6

Or, even if I specify the IP address in the Filter, the packets
are not getting marked:
interface xl0 priq
conditioner xl0 http_marker <mark 0x4>
filter xl0 http_marker ruleno 5 0 0 10.0.1.1 netmask 0xffffff00 0 6

But, if I only specify the Protocol without any port number or IP address,
the packets are getting marked;
interface xl0 priq
conditioner xl0 marker <mark 0x4>
filter xl0 marker ruleno 5 0 0 0 0 6

I want the ability to mark packets according to their port numbers, protocols
and IP addresses. But for some reason it is not working on OpenBSD 3.2
stable. 

Can someone familiar with ALTQ help me out ? I searched the archives
and could not find any similar problem being reported.
I would really appreciate if someone can help out.
More details are in the mail below:
TIA,
-Mat

--- Mathew S <mathewsss_(_at_)_yahoo_(_dot_)_com> wrote:
> Date: Wed, 30 Apr 2003 17:50:31 -0700 (PDT)
> From: Mathew S <mathewsss_(_at_)_yahoo_(_dot_)_com>
> Subject: ALTQ conditioners (openBSD 3.2 stable)
> To: misc_(_at_)_openbsd_(_dot_)_org
> 
> Hi,
> 
> I have set up an ALTQ Traffic conditioner for marking packets
> on my router running OpenBSD 3.2 stable:
>            ----------------------
> 10.0.1.5---| xl0           fxp0  |---20.0.1.5
>            | 10.0.1.1   20.0.1.5 |
>            ----------------------
> 
> This router forwards traffic between the two networks above.
> 
> I have a simple conditioner on interface xl0 
> defined in /etc/altq.conf:
> 
> interface xl0 priq
> conditioner xl0 marker <mark 0x4>
> filter xl0 marker ruleno 5 0 80 0 0 6
> filter xl0 marker ruleno 5 0 0 0 80 6
> 
> I have a Webserver on the 10.0.1.5 machine. 
> A PC is at 20.0.1.5 trying to access the Webserver.
> 
> When I look at "altqstat -I xl0" the HTTP packets are never marked.
> They are always passed through without any marking.
> I also looked at the packet sniffer on the 20.0.1.0 network
> and the HTTP packets coming from 10.0.1.5 are not marked.
> 
> But if I change my filters to this, the HTTP packets start
> getting marked: 
> interface xl0 priq
> conditioner xl0 marker <mark 0x4>
> filter xl0 marker ruleno 5 0 0 0 0 6
> filter xl0 marker ruleno 5 0 0 0 0 6
> 
> Can anyone please let me know what I need to do to get this
> working ? 
> 
> Thanks in advance,
> Mat
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



Visit your host, monkey.org