Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Problem .....
@ 2003-02-02 18:17 cool kumar
  0 siblings, 0 replies; only message in thread
From: cool kumar @ 2003-02-02 18:17 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-02 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-02 18:17 [LARTC] Problem cool kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox