All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diego Cabrero <diego.cabrero@e-attico.net>
Cc: netfilter-devel@lists.netfilter.org, netfilter@lists.netfilter.org
Subject: Controling Inbound and Outbound traffic simultaneusly.
Date: Mon, 28 Nov 2005 19:12:48 +0100	[thread overview]
Message-ID: <438B48A0.8050100@e-attico.net> (raw)
In-Reply-To: <4385B2EB.60209@e-attico.net>

Hi,

I'm Running two independent traffic applications between two computers 
conected point to point each other, at the same time each of these 
applications are generating trafficin one direction so i have two 
independent traffics traveling througth the same channel.

Figure:
                eth1, PC1 ---------app1-----------> eth1, PC2
                                <--------app2------------

My problem is that i am trying to control the whole inbound and outbound 
traffic through PC1 (by using IMQ for ingress) but it seems like they 
are connected somehow.

This is the script i am using:
---------------------------
Inbound control commands:
            tc qdisc add dev imq0 root handle 1: htb
            tc class add dev imq0 parent 1: classid 1:1 htb rate 
${INBOUND}kbps ceil  ${INBOUND}kbps
            iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 1
            tc filter add dev imq0 protocol ip parent 1:0 handle 1 fw 
flowid 1:1
            iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0

Outbound control commands:
            tc qdisc add dev eth1 root handle 2: htb
            tc class add dev eth1 parent 2: classid 2:1 htb rate 
${OUTBOUND}kbps ceil  ${OUTBOUND}kbps
            tc filter add dev eth1 protocol ip parent 2:0 prio 3 u32 
match ip dst 0.0.0.0/0 flowid 2:1

Any ideas?

Thanks!!
   




      reply	other threads:[~2005-11-28 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-24 12:32 iptables IMQ command problem Diego Cabrero
2005-11-28 18:12 ` Diego Cabrero [this message]

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=438B48A0.8050100@e-attico.net \
    --to=diego.cabrero@e-attico.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=netfilter@lists.netfilter.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.