Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Maxime Ducharme" <mducharme@cybergeneration.com>
To: netfilter@lists.netfilter.org
Subject: Question about REJECT in FORWARD rule
Date: Wed, 11 Aug 2004 10:49:34 -0400	[thread overview]
Message-ID: <008f01c47fb2$6af27f80$a900a8c0@cybergeneration.com> (raw)

Hi Everyone

I'm currently trying to ddo the following :

- we have a simple NAT running iptables 1.2.9
with about 20 hosts behind

- we have an outside SQL Server

- when ppl use their SQL Server clients, I see lots
of TCP SYN on port 445 of this SQL Server


What I'd like to do is something like :
$IPTABLES -A FORWARD -i $LAN_IFACE -p tcp --dport 445 --dst sql.se.rv.er -j
REJECT --reject-with tcp-reset

My problem :
Packet seems OK (iptables change source ip and port) and is
TCP RST, but it is sent to the external interface, and my LAN
hosts do not get the reply and must wait for a timeout to occur
(since another firewall protects the SQL Server and drops TCP 445)

Is there any way to force an interface for the REJECT rule ?

Is there any configuration that could cause this to happen ?

Thanks in advance

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau



             reply	other threads:[~2004-08-11 14:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-11 14:49 Maxime Ducharme [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-11 15:44 Question about REJECT in FORWARD rule Jason Opperisano
2004-08-11 16:14 ` Maxime Ducharme
2004-08-11 16:30 Jason Opperisano
2004-08-11 17:37 ` Maxime Ducharme
2004-08-11 20:00 ` Carlos Villegas
2004-08-12  1:32   ` Mark E. Donaldson
2004-08-12 12:46     ` Dick St.Peters
2004-08-11 19:01 Jason Opperisano
2004-08-11 20:24 Jason Opperisano

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='008f01c47fb2$6af27f80$a900a8c0@cybergeneration.com' \
    --to=mducharme@cybergeneration.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox