All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tóth Nándor" <nug@sch.bme.hu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Confuse, putting packets in wrong mangle table.
Date: Wed, 19 Jan 2005 08:19:58 +0000	[thread overview]
Message-ID: <41EE182E.3000406@sch.bme.hu> (raw)
In-Reply-To: <200501191032.17988.rio@martin.mu>

Hi!

Rio Martin. wrote:
> Folks,
> I am a little bit confuse in how to put these packets into correct mangle 
> table for traffic shaping.
> 
> This is what i ve planned to do:
> 
> - - - - :eth0 [ LINUX-BOX ] eth1: - - - -
> 
> Let say:
> eth0: 220.100.1.1
> eth1: 192.168.1.1
> eth1:1 192.168.1.2
> 
> 192.168.1.0/24 get natted into 220.100.1.1 before reaching the internet.
> I put every packets coming from internet (eth0) this way:
> # iptables -t mangle -I PREROUTING -i eth0 .. * * * *
> 
> But what if i would like to do the same way with ip 192.168.1.1 and 
> 192.168.1.2 ? How to put the packets in correct mangle table?

You can only shape traffic leaving your interface. You have to shape the 
incoming traffic at interface eth1, the outgoing traffic at interface eth0.

This site is great for learning:
http://www.knowplace.org/shaper/qdisc.html#egress

I found to use iptables+CLASSIFY method the easiest way to classify packets.

Your question is a little dizzy...

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

      reply	other threads:[~2005-01-19  8:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-19  3:40 [LARTC] Confuse, putting packets in wrong mangle table Rio Martin.
2005-01-19  8:19 ` Tóth Nándor [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=41EE182E.3000406@sch.bme.hu \
    --to=nug@sch.bme.hu \
    --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.