All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] IMQ / how to put incoming traffic to the gateway and to the LAN in
@ 2003-06-04 16:32 schmurtz
  2003-06-05 11:13 ` [LARTC] IMQ / how to put incoming traffic to the gateway and to schmurtz
  0 siblings, 1 reply; 2+ messages in thread
From: schmurtz @ 2003-06-04 16:32 UTC (permalink / raw)
  To: lartc


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-05 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-04 16:32 [LARTC] IMQ / how to put incoming traffic to the gateway and to the LAN in schmurtz
2003-06-05 11:13 ` [LARTC] IMQ / how to put incoming traffic to the gateway and to schmurtz

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.