Hi

Sumit Pandya and Core Team

Thank you for you program dump.c ,but  i have  a little problem and need you 
help.

I have Rethat 7.2 and instaled iptables-1.2.5 and the iptables is ok I was 
proved it with a bridge tools as brctl and no problem , of course before I 
compiled the kernel with support netlink and netfilter , but my problem is 
the next with dump.c :

[root@firewall iptables-1.2.5]# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
QUEUE      all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@firewall iptables-1.2.5]# ./dump
passer: Failed to send netlink message: Connection refused

I compile dump.c inside folder iptables-1.2.5 with dcc -o dump dump.c 
libipq/libipq.a
I don't Know what happen, I proved another examples inside the man page of 
libipq but the same problems for example this with a example in tools of 
CVS:

is intercept.c

[root@firewall iptables-1.2.5]# ls
COPYING                 iptables               local_ip.c
dump                    iptables.8             Makefile
dump.c                  iptables.c             netfilter
ejemplolibipq           iptables.d             nf
extensions              iptables.o             nfqtest
firewall1               iptables-restore       nfqtest.c
gen_ip.c                iptables-restore.8     nfqtest.c~
include                 iptables-restore.c     nfqtest.o
INSTALL                 iptables-save          patch-o-matic
interc                  iptables-save.8        prueba
intercept.c             iptables-save.c        prueba.c
ip6tables               iptables-standalone.c  prueba.c~
ip6tables.8             iptables-standalone.d  rcv
ip6tables.c             isapplied              rcvip
ip6tables.o             KNOWN_BUGS             rcv_ip.c
ip6tables-restore.c     libipq                 redirect.c
ip6tables-save.c        libipqexample.c        Rules.make
ip6tables-standalone.c  libiptc                TMP
ippool                  libipulog
ipqdemo.c               localip
[root@firewall iptables-1.2.5]# ./interc FORWARD ACCEPT 1 2
intercept: Connection refused
intercept: Failed to send netlink message: Illegal seek
[root@firewall iptables-1.2.5]#

HELP ME!!!!

Is for my Graduation .

I don't know write me another man page that you tell me for more information 
about this .

>From: "Sumit Pandya" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: RE: Help a this begining in netfilter using c programs
>Date: Thu, 14 Mar 2002 16:59:02 +0530
>
>Hi PAUL,
>Get program from attachment. To get it working you need an entry in
>iptables
># iptables -t mangle -I PREROUINTG "more filter and match here" -j QUEUE
>then run this program.... with -d option, it will dump packet information.
>Hope this help
>-- Sumit
>
>From: "PAUL FABRICIO VILLACRESES LEON" <[EMAIL PROTECTED]>
>Date: Wed, 13 Mar 2002 15:35:30 +0000
>
>I'm students I need help using libiptc or libipq
>
>I have 2 ethenet cards (eth1) and (eth2) for intercept thoght eth1 to eth2
>
>Please i need some example using standard libiptc or libipq por intercepts
>packets thoght eth1 to eht2
><< dump.c >>



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


Reply via email to