From: Francois Chenais <francois@chenais.net>
To: netfilter@lists.samba.org
Subject: redirect input SYN before forward to QUEUE
Date: Mon, 10 Jun 2002 18:19:23 +0200 [thread overview]
Message-ID: <20020610181923.2a0030a3.francois@chenais.net> (raw)
Hello,
192.168.76.0 192.168.0.0
A --------------> GW_Netfilter --------------------> B
\ /
QUEUE
\
user APP
In fact, I would like to redirect all SYN packet comming from A to B
in target QUEUE for a user space check.
Here what I've done but doesn't work !:-|
on A
-----
route add -net 192.168.0.0 gw GW_Netfilter netmask 255.255.255.0
on GW_Netfilter
---------------
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -A FORWARD -d 192.160.0.0/255.255.255.0 -p tcp --tcp-flags SYN SYN -j QUEUE
iptables -A INPUT -d 192.160.0.0/255.255.255.0 -p tcp --tcp-flags SYN SYN -j QUEUE
user APP connected on hook 1 on the ip_queue
---------------------------------------------
What's wrong ?
Thanks a lot
François
--
Woody 3.0
Linux tanna 2.4.14 #3 SMP Thu Dec 6 14:04:03 CET 2001 i686 unknown
PGP fingerprint : 9AFA 15EC 96C9 F607 EBC1 DD41 70C5 F0E0 25A5 105B
next reply other threads:[~2002-06-10 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-10 16:19 Francois Chenais [this message]
2002-06-10 16:45 ` redirect input SYN before forward to QUEUE Francois Chenais
2002-06-11 9:20 ` Francois Chenais
2002-06-11 12:17 ` Ramin Alidousti
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=20020610181923.2a0030a3.francois@chenais.net \
--to=francois@chenais.net \
--cc=netfilter@lists.samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox