Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: cool kumar <bhikubhai@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Problem .....
Date: Sun, 02 Feb 2003 18:17:13 +0000	[thread overview]
Message-ID: <marc-lartc-104420991600899@msgid-missing> (raw)

Hi,
My Problem is like this.....

I have 2 interfaces eth0 and eth1 
IPaddress at eth0 is 132.147.165.1 and eth1 is
202.88.151.1. 
I have a LAN of 132.165.0.0 network and all the
computers in this network access the internet via NAT
that is done by my linux m/c having ipaddress
132.147.165.1.
Natting is done via iptables with the following
options.
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to
202.88.151.1 
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE  

Now I am interested in bandwidth management .
So I have introduced qdisc through tc at both the
interface.

I used HTB as such after applying the patch.
I associated filters using internal IPaddresses for
both the interface.
At eth0 all the packets are going to the properly
assigned queue while at interface eth1 all the packets
went through default queue as no packet matched the
filters. This is because the packets are Natted.

Is it possible that when the packets arrive from eth0 
to eth1 no natting is done and at the time of xmit at
eth1 Natting takes place.
Similarly, when the packet comes from eth1 first
Natting takes place and is then queued.

Presently the packet is not getting bandwidth managed
fully as eth1 has no management. 

waiting for replies

thanks
bhik


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2003-02-02 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=marc-lartc-104420991600899@msgid-missing \
    --to=bhikubhai@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox