From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Bedogni Subject: Routing packets via a C program Date: Mon, 22 Jan 2007 09:58:51 +0100 Message-ID: <200701220958.51794.bedogniluca-linux@yahoo.it> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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@lists.netfilter.org Hi all i'm writing down a simple program for routing the packets manually. The idea is: if a packet comes from a specific IP (192.168.0.2) I set ip->saddr to my ip and then accept it. And, if a packets comes from the outside, i set ip->daddr to 192.168.0.2 and then accept it. I recalculate the checksum and it's correct (i can see that by printing out it). The basic problem is that, sniffing packets with wireshark, i can see the packet from 192.168.0.2 to outside, but not mine to outside. I also tried with NF_REPEAT and NF_ACCEPT and NF_QUEUE when calling ipq_set_verdict, but nothing changed.. Any hints? RTFM? Regards -- Debian Powered GNU/Linux User #373118 Bedogni Luca - Blog | http://blog.lucabedogni.it Site | http://www.lucabedogni.it Debianizzati - www.debianizzati.org | Founder Member -- Book: A non-volatile information storage medium.