| To: | netfilter@lists.netfilter.org |
|---|---|
| Subject: | Routing packets via a C program |
| From: | <bedogniluca-linux@yahoo.it> |
| Date: | Mon, 22 Jan 2007 10:05:59 +0100 (CET) |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | netfilter-list1@securepoint.com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=M1WCslqwm2zqFEnkht+90cUZD+0Dpdc3P+kQDzcNSxUnc6blZSCik/UmCSed9eD+EVHOowobBfvTdPtXVaVKrf8jAM0cMuEy+JOJETqkICKCxBbn7zHCqUzAN9RgMy93HAMkKZ4yGmn5VkDau+ch6DlvKdoSj6/xSai+qhAO0X4=; |
| List-archive: | </pipermail/netfilter> |
| List-help: | <mailto:netfilter-request@lists.netfilter.org?subject=help> |
| List-id: | General discussion and user questions <netfilter.lists.netfilter.org> |
| List-post: | <mailto:netfilter@lists.netfilter.org> |
| List-subscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe> |
| List-unsubscribe: | <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe> |
| Reply-to: | bedogniluca-linux@yahoo.it |
| Sender: | netfilter-bounces@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 it out).
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
___________________________________
Vinci i biglietti per FIFA World Cup in Germania!
yahoo.it/concorso_messenger
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Routing packets via a C program, Luca Bedogni |
|---|---|
| Next by Date: | What is wrong ???, Gáspár Lajos |
| Previous by Thread: | Re: Routing packets via a C program, Luca Bedogni |
| Next by Thread: | What is wrong ???, Gáspár Lajos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |