From: aoliva <aoliva@it.uc3m.es>
To: Mohammad Farooq <mohammadfarooq@tango-networks.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Pleeeeeeeease help: question about ip_queue
Date: Tue, 10 Oct 2006 17:36:44 +0200 [thread overview]
Message-ID: <452BBE0C.2060402@it.uc3m.es> (raw)
In-Reply-To: <1160491318.4059.18.camel@mfarooq-1.tango-networks.com>
Hi all,
I think you can do what you want by storing the message in the module,
dropping the current one and after the specific time sending it again.
Regards
Antonio
Mohammad Farooq wrote:
> Hi,
>
> I hope someone familiar with ip_queue can clarify the functioning of the
> ip_queue. I wrote a simple test program, what all it does read packets
> from the queue, hold a packet and accept it later. Here is the logic:
>
> read message from the ip_queue
> save message id
> read message from the ip_queue
> accept current message
> read message from the ip_queue
> accept current message
> read message from the ip_queue
> accept current message
> read message from the ip_queue
> accept current message
> read message from the ip_queue
> accept current message
> **accept saved message using the saved message id
> accept current message
> read message from the ip_queue
> accept current message
>
> When I accept the saved message, it just disappears. My question is, can
> we hold packets and accept them sometimes in the future? Thanks.
>
> MF
>
> Note: here is my iptable rules:
> iptables -t nat -A PREROUTING -p udp -s 192.168.82.140 -d 192.168.75.51
> --dport 7862 -j DNAT --to 192.168.82.140:7862
> iptables -t nat -A POSTROUTING -p udp -s 192.168.82.140 -d
> 192.168.82.140 --dport 7862 -j SNAT --to 192.168.75.51:7862
>
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -A FORWARD -p udp -j QUEUE
>
>
>
>
>
next prev parent reply other threads:[~2006-10-10 15:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-10 14:41 Pleeeeeeeease help: question about ip_queue Mohammad Farooq
2006-10-10 15:36 ` aoliva [this message]
2006-10-10 16:26 ` Mohammad Farooq
2006-10-10 20:26 ` Mohammad Farooq
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=452BBE0C.2060402@it.uc3m.es \
--to=aoliva@it.uc3m.es \
--cc=mohammadfarooq@tango-networks.com \
--cc=netfilter@lists.netfilter.org \
/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 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.