From: David Coulson Subject: Re: Support for longest prefix IP address match in iptables? Date: Fri, 28 Apr 2006 17:08:20 -0400 Message-ID: <44528444.8080504@davidcoulson.net> References: <38539.192.168.20.50.1146211317.squirrel@pop-mail> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org, nbasker@india.tejasnetworks.com Return-path: To: shyam@india.tejasnetworks.com In-Reply-To: <38539.192.168.20.50.1146211317.squirrel@pop-mail> 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 shyam@india.tejasnetworks.com wrote: > iptables -t mangle -A POSTROUTING -d 10.12.13.14 -j MARK --set-mark=5 > iptables -t mangle -A POSTROUTING -d 10.12.13.0/24 -j MARK --set-mark=7 Put these rules the other way around. AFAIK, MARK does not exit the chain after a match. David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEUoRETIgPQWnLowkRAp1IAJ41tAgE9Bi5uRuvJU6dpTLzbd1nngCfc0pW bKj0maY/Im8E8PIEonQrXtk= =FQvS -----END PGP SIGNATURE-----