From: "Ethy H. Brito" Date: Thu, 02 Feb 2006 12:40:29 +0000 Subject: Re: [LARTC] marking and limiting P2P packets Message-Id: <20060202104029.51701464@pulsar.inexo.com.br> List-Id: References: <20060202121248.2BF64396ED@mailhub.takas.lt> In-Reply-To: <20060202121248.2BF64396ED@mailhub.takas.lt> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Thu, 2 Feb 2006 14:12:45 +0200 "Vaidas" wrote: > iptables -t mangle -A DSL-IN -p tcp -j CONNMARK --restore-mark > > iptables -t mangle -A DSL-IN -p tcp -m mark ! --mark 0 -j ACCEPT > > iptables -t mangle -A DSL-IN -p tcp -m ipp2p --ipp2p -j MARK --set-mark 7 > > iptables -t mangle -A DSL-IN -p tcp -m mark --mark 7 -j CONNMARK --save-mark > > iptables -t mangle -A DSL-IN -p udp -m ipp2p --ipp2p -j MARK --set-mark 7 > > iptables -t mangle -A DSL-IN -m mark --mark 0 -j MARK --set-mark 6 > > iptables -t mangle -A DSL-IN -j IMQ --todev 0 What about saving the marks with '-j CONNMARK --save-mark' unconditionally as the last rule of DSL-IN chain? Ethy _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc