From: Aleksandar Milivojevic <amilivojevic@pbl.ca>
To: Giancarlo Boaron <gboaron@yahoo.com.br>
Cc: netfilter@lists.netfilter.org
Subject: Re: Problems with connection
Date: Mon, 13 Sep 2004 16:16:35 -0500 [thread overview]
Message-ID: <41460E33.7040403@pbl.ca> (raw)
In-Reply-To: <20040913210115.54459.qmail@web50202.mail.yahoo.com>
Giancarlo Boaron wrote:
> Hello!
>
> I have a client in my LAN that must access a server on
> the Internet listening for requests on 3456 port.
>
> Using the FORWARD chain (default police = DROP) I have
> the following lines:
>
> iptables -A FORWARD -m state ESTABLISHED,RELATED -j
> ACCEPT
>
> <... my rules ...>
>
> iptables -A FORWARD -d X.Y.0.0/16 -p tcp --dport 3456
> -j ACCEPT
[snip]
> Does it mean that the server is trying to start a new
> back connection to the client and my DROP policy is
> applied? (since I don't permit new incoming
> connections?)
>
> I read the application documents and it only says that
> I must allow outgoing traffic to and from
> X.Y.0.0/16:3456 using TCP protocol.
The easiest way to see if your firewall is dropping anything is to add
something like this to the end of your firewall rules (provided you
don't have any DROP targets beforehand):
iptables -A FORWARD -s X.Y.0.0/16 -j LOG --log-prefix "FWD_FRM_X_Y "
iptables -A FORWARD -d X.Y.0.0/16 -j LOG --log-prefix "FWD_TO_X_Y "
If there is any callback connection, it will show in kernel log (on Red
Hatish systems /var/log/messages). It will also show if your firewall
is blocking any other packets between your network and X.Y.0.0/16.
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
next prev parent reply other threads:[~2004-09-13 21:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-13 21:01 Problems with connection Giancarlo Boaron
2004-09-13 21:16 ` Aleksandar Milivojevic [this message]
2004-09-13 21:18 ` Jason Opperisano
2004-09-13 21:30 ` Aleksandar Milivojevic
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=41460E33.7040403@pbl.ca \
--to=amilivojevic@pbl.ca \
--cc=gboaron@yahoo.com.br \
--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.