All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Correa <andre.correa@pobox.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] IMQ & NAT
Date: Mon, 05 Apr 2004 15:58:08 +0000	[thread overview]
Message-ID: <40718210.7030705@pobox.com> (raw)
In-Reply-To: <1081120183.994.18.camel@snowball>


Hi Joan, can you please tell us what version of kernel and iptables are 
you using?

Are you using Patrick McHardy's / www.linuximq.net original IMQ 
implementation?

tks

Andre Correa
www.linuximq.net



Joan Fuster Monzó wrote:
> Hi all, my IMQ device works OK (thanks to Andy Furniss), but now I've
> problems to attach the traffic in the qdisc's. This is my conf:
> 
> -----------------------------------------------------------------------
> INET
>  |
>  |eth0  300Kbps
> ROUTER (NAT)
>  |eth1
>  |
> LAN
> -----------------------------------------------------------------------
> 
> MAX00
> 
> tc qdisc add dev imq0 root handle 1: htb default 13
>                                                                                                                
> tc class add dev imq0 parent 1: classid 1:1 htb rate ${MAX}kbit ceil
> ${MAX}kbit
>                                                                                                                
> tc class add dev imq0 parent 1:1 classid 1:10 htb rate 60kbit ceil
> ${MAX}kbit prio 0
> tc class add dev imq0 parent 1:1 classid 1:11 htb rate 40kbit ceil
> ${MAX}kbit prio 1
> tc class add dev imq0 parent 1:1 classid 1:12 htb rate 100kbit ceil
> ${MAX}kbit prio 2
> tc class add dev imq0 parent 1:1 classid 1:13 htb rate 100kbit ceil
> ${MAX}kbit prio 3
>                                                                                                                
> tc qdisc add dev imq0 parent 1:10 handle 100: sfq
> tc qdisc add dev imq0 parent 1:11 handle 110: sfq
> tc qdisc add dev imq0 parent 1:12 handle 120: sfq
> tc qdisc add dev imq0 parent 1:13 handle 130: sfq
>                                                                                                                
> tc filter add dev imq0 parent 1:0 protocol ip prio 1 handle 1 fw classid
> 1:10
> tc filter add dev imq0 parent 1:0 protocol ip prio 2 handle 2 fw classid
> 1:11
> tc filter add dev imq0 parent 1:0 protocol ip prio 3 handle 3 fw classid
> 1:12
> tc filter add dev imq0 parent 1:0 protocol ip prio 4 handle 4 fw classid
> 1:13
> 
> ip link set imq0 up
> 
> iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
>                                                                                                                
> #ICMP                                                                                                         
> iptables -t mangle -A PREROUTING -i eth0 -p icmp -j MARK --set-mark 1
> iptables -t mangle -A PREROUTING -i eth0 -p icmp -j RETURN
>                                                                                                                
> #SSH                                                                                                          
> iptables -t mangle -A PREROUTING -i eth0 -p tcp  --dport 22 -j MARK
> --set-mark 1
> iptables -t mangle -A PREROUTING -i eth0 -p tcp  --dport 22 -j RETURN
> 
> ...
> ------------------------------------------------------------------------
> 
> I've patched the IMQ with the imq-nat patch, but all traffic goes to
> 1:13
> 
> #tc -s class show dev imq0
> -------------------------------------------------------------------------
> ...
> 
> class htb 1:13 parent 1:1 leaf 130: prio 3 rate 100Kbit ceil 300Kbit
> burst 1727b cburst 1983b
>  Sent 8981846847 bytes 18055130 pkts (dropped 99, overlimits 0)
>  lended: 8947767 borrowed: 9107363 giants: 0
>  tokens: 136320 ctokens: 52265
>  
> class htb 1:12 parent 1:1 leaf 120: prio 2 rate 100Kbit ceil 300Kbit
> burst 1727b cburst 1983b
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0
>  tokens: 138240 ctokens: 52905
> 
> ---------------------------------------------------------------------------
> 
> What happens?? I'm newbie in IMQ... Sorry for the long text ;) Thanks
> for the help!!
> 
> Joan

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2004-04-05 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-04 23:09 [LARTC] IMQ & NAT Joan Fuster Monzó
2004-04-05 15:58 ` Andre Correa [this message]
2004-04-05 22:55 ` Joan Fuster Monzó
  -- strict thread matches above, loose matches on Subject: below --
2006-06-02 20:42 [LARTC] IMQ + NAT Jonas Jasas
2006-06-06 14:35 ` Andy Furniss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40718210.7030705@pobox.com \
    --to=andre.correa@pobox.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.