From: Martin Vassilev Date: Wed, 01 Jun 2005 08:56:13 +0000 Subject: [LARTC] filter ingress policy based on nfmark Message-Id: <200506011156.13278.mv-lists@net-surf.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi all. Since I move on to 2.6 kernel , filter ingress policy based on nfmark won= =B4t=20 work. Sorry for my english. Simple example: iptables -t mangle -I PREROUTING -j MARK --set-mark 1 ${QDISC_ADD} handle ffff: ingress ${FILTER_ADD} parent ffff: protocol ip prio 100 handle 1 fw \ police rate 128Kbit burst 10k drop flowid 2:11 # tc -s -d qdisc ls dev eth0 qdisc ingress ffff: ---------------- Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 # iptables -t mangle -L -n -v pkts bytes target prot opt in out source destinat= ion 1362 293K MARK all -- * * 0.0.0.0/0 0.0.0.0= /0 =20 MARK set 0x1 No problems at 2.4 kernel. --=20 Best Regards, Martin Vassilev NetSurf.net Ltd. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc