Routing packets via a C program
bedogniluca-linux at yahoo.it
bedogniluca-linux at yahoo.it
Mon Jan 22 10:05:59 CET 2007
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
More information about the netfilter
mailing list