All of lore.kernel.org
 help / color / mirror / Atom feed
From: schmurtz@netcourrier.com
To: lartc@vger.kernel.org
Subject: [LARTC] IMQ / how to put incoming traffic to the gateway and to the LAN in
Date: Wed, 04 Jun 2003 16:32:43 +0000	[thread overview]
Message-ID: <marc-lartc-105474444816992@msgid-missing> (raw)


Hi,

My setup is:
 LAN --(eth0)-- GW/FW --(ppp0)-- Internet

How to distinguish incoming traffic to the gateway from the traffic to the LAN ?

I'm using 'iptables -t mangle -A PREROUTING -j IMQ -i ppp0' to send incoming traffic to imq0
Now I would like to put incoming traffic to the gateway and incoming traffic to the lan in two different classes.
I tried 'iptables -t mangle -A POSTROUTING -o eth0 -m mark --mark 0x1 -j IMQ' and 'iptables -t mangle -A FORWARD -i ppp0 -o eth0 -j MARK --set-mark 0x1'
But it's wrong because the incoming traffic to the LAN goes twice to imq0.

Is there a way to do that correctly ?

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

             reply	other threads:[~2003-06-04 16:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-04 16:32 schmurtz [this message]
2003-06-05 11:13 ` [LARTC] IMQ / how to put incoming traffic to the gateway and to schmurtz

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-105474444816992@msgid-missing \
    --to=schmurtz@netcourrier.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.