From: "Michael D. Berger" Subject: Set mark in -j QUEUE? Date: Sat, 17 Dec 2005 12:49:22 -0500 Message-ID: <000001c60332$36cd7340$2801a8c0@MBRC40> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter Using iptables-1.2.11-3.1.RHEL4. In the mangle table, in an otherwise successful -j QUEUE processor, I set: ipq_packet_msg_t* msg; ... msg->mark = 2; ipq_set_verdict(ipqHand,msg->packet_id,NF_ACCEPT,0,NULL); and in the filter table, I check: -A IN -s 192.168.1.0/24 -m mark --mark 0 -j LOG-QUEUE-0-DROP -A IN -s 192.168.1.0/24 -m mark --mark 1 -j LOG-QUEUE-DROP -A IN -s 192.168.1.0/24 -m mark --mark 2 -j LOG-QUEUE-ACCEPT The result is zero. On the other hand, if in the mangle table: -A PRE -p tcp -s 192.168.1.0/24 -j MARK --set-mark 2 I get the correct result of 2 in the filter table. Is there any way to make this work in the -j QUEUE processor? Thanks in advance for your help. Mike. -- Michael D. Berger m.d.berger@ieee.org