From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 1/1] Re: dangerous? Setting mark in nat table Date: Wed, 14 Mar 2007 21:35:21 +0100 Message-ID: <45F85C89.7070107@trash.net> References: <45F6CD7C.40708@ufomechanic.net> <1173868532.26913.39.camel@henriknordstrom.net> <45F7D657.8070907@trash.net> <1173876211.26913.73.camel@henriknordstrom.net> <45F7F027.9050300@ufomechanic.net> <45F7F3C6.3060908@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Jan Engelhardt , netfilter-devel@lists.netfilter.org, Amin Azez , Henrik Nordstrom To: Jozsef Kadlecsik Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Jozsef Kadlecsik wrote: > On Wed, 14 Mar 2007, Jozsef Kadlecsik wrote: > >> Sorry, but I disagree. The DSCP, ECN, TOS, TTL, HL targets modify the >> packet itself and thus all belong to the mangle table alone. > > > Umm, probably I was too terse in the sentence above... > > Tecnically speaking, the targets could be "released" from the mangle > table. However, all the tables have got a specific function. By breaking > up the tie between the given targets ("mangle packet content thus and > thus") and the table which carries the functionality ("mangle" table) > just confuse the internal logic behind the system. Well, my opinion is that the mangle table is misnamed. The only functional difference to filter is rerouting in LOCAL_OUT if any of the routing keys changes, so it would be better called route table. > The MARK/CONNMARK targets can be used to carry neutral information all > around the netfilter framework (besides triggering routing). So I agree > that let those be available in all tables. > > Personally, I'm not so convinced about CLASSIFY, SECMARK and CONNSECMARK. > The targets make possible to alter/modify the behaviour of external > systems. Is there any functionality lost if the targets are restricted to > the mangle table (taking into account the ctstate match)? Not lost. but it requires people to duplicate rules in some cases for no real reason.