From: George Alexandru Dragoi <waruiinu@gmail.com>
To: Guilherme Cesar Soares Ruppert <ruppert@las.ic.unicamp.br>
Cc: netfilter@lists.netfilter.org
Subject: Re: Help!! How to steal UDP traffic?
Date: Tue, 25 Jan 2005 12:29:31 +0200 [thread overview]
Message-ID: <3063e505012502291406261e@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0501242211240.6917@quasar.las.ic.unicamp.br>
Why not MARK-ing it with iptables and send it to the tunnel with iproute ?
On Mon, 24 Jan 2005 22:12:04 -0200 (BRST), Guilherme Cesar Soares
Ruppert <ruppert@las.ic.unicamp.br> wrote:
>
>
> Hi everyone, please I need some help!!
>
> I'm developing a program that needs to intercept an UDP traffic generated
> locally by another application. It's like a tunnel. My program will steal the
> outgoing packets from the application (in the same machine) and will send to
> a tcp tunnel.
>
> I am using Libipq to do that, but I have a BIG problem. After send the UDP
> packets to my tunnel, I need to DROP the packets because I don't want them to
> be sent over the network. So I am doing:
> ipq_set_verdict(handle, m->packet_id, NF_DROP, 0, NULL);
>
> But the problem is that when I drop the packet, the application that
> generated the packet remains blocked in sendto() until the packet is
> accepted. When I change to NF_ACCEPT, the application doesn't block but the
> packets are sent to the network and I don't want it.
>
> How could I drop a packet silently, without blocking the application? Is
> there any way to intercept outgoing packets locally without let the
> applications notice that their packet were stolen?
>
> Here is the same example using netcat:
> $ iptables -A OUTPUT -p udp -j QUEUE
> $ echo "Test" | nc -n -u 10.1.1.23 800
> And this last remains blocked, not returning to shell.
>
> I tested will ping (icmp echo) also and the same happened, but ping didn't
> block. Instead, it said "operation not permitted".
>
> Please give me some hope!!! :-)
>
> Thanks
>
> Guilherme Ruppert
>
>
--
Bla bla
prev parent reply other threads:[~2005-01-25 10:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.61.0501221918080.6027@quasar.las.ic.unicamp.br>
2005-01-25 0:12 ` Help!! How to steal UDP traffic? Guilherme Cesar Soares Ruppert
2005-01-25 10:29 ` George Alexandru Dragoi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3063e505012502291406261e@mail.gmail.com \
--to=waruiinu@gmail.com \
--cc=netfilter@lists.netfilter.org \
--cc=ruppert@las.ic.unicamp.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox