* queue and HTTP
@ 2006-11-09 10:40 miguel Angel Vazquez
2006-11-09 11:14 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: miguel Angel Vazquez @ 2006-11-09 10:40 UTC (permalink / raw)
To: netfilter-devel
Hello mates.
I'm trying to intercept my own HTTP packages in the OUTPUT hook (I
don't want to use sniffers or ethereal). For that reason I've decided
to use the iptables-queue-modules...recently I can get all the
IP-header information using iphdr struct...but now I don't know how to
continue in order to get the INFO (HTTP packet).
Maybe using ethernet structs??mmmm Using these structs I think I can
get MAC information but I don't know if I can obtain the HTTP packet.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: queue and HTTP
2006-11-09 10:40 queue and HTTP miguel Angel Vazquez
@ 2006-11-09 11:14 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2006-11-09 11:14 UTC (permalink / raw)
To: miguel Angel Vazquez; +Cc: netfilter-devel
miguel Angel Vazquez wrote:
> Hello mates.
>
> I'm trying to intercept my own HTTP packages in the OUTPUT hook (I
> don't want to use sniffers or ethereal). For that reason I've decided
> to use the iptables-queue-modules...recently I can get all the
> IP-header information using iphdr struct...but now I don't know how to
> continue in order to get the INFO (HTTP packet).
payload_offset = iph->ihl * 4 + tcph->doff * 4
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-09 11:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09 10:40 queue and HTTP miguel Angel Vazquez
2006-11-09 11:14 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.