Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michael Gale <michael.gale@utilitran.com>
To: netfilter@lists.netfilter.org
Subject: Re: FTP passive not working
Date: Tue, 13 Apr 2004 13:47:49 -0600	[thread overview]
Message-ID: <20040413134749.4e38203a@mgalepc.utilitran.com> (raw)
In-Reply-To: <200404132037.35477.Antony@Soft-Solutions.co.uk>

Hello,

	Passive connections to the client work on the local LAN but they are connecting
to a different IP on the box -- because the server will return the external IP
of the firewall for passive connections to the main IP.

I am sure that the problem is that "RELATED" option under state do not work with
a user defined chain.

iptables -A userchain -i external -o internal -d internalIP -m state --state
ESTABLISHED,RELATED -j ACCEPT.

Michael.


On Tue, 13 Apr 2004 20:37:35 +0100
Antony Stone <Antony@Soft-Solutions.co.uk> wrote:

> On Tuesday 13 April 2004 6:41 pm, Michael Gale wrote:
> 
> > Hello,
> >
> > I am having trouble getting a FTP connection to work in passive mode from
> > behind a firewall.
> >
> > On the FTP server I have two IP's one used for internal connections and one
> > used for external connections. The external one is .36 .. so in the
> > proftpd.conf file I used the following:
> 
> <snip...>
> 
> > So when I try passive my client tried to connect to the external IP of the
> > firewall on a port > 1024.
> 
> 1. Where is the client, which is connecting to the external address?
> 
> 2. Do passive connections to this server work from your LAN, not going through
> the firewall?
> 
> 3. Do passive connections to external servers, from clients on your LAN, work 
> through the firewall?
> 
> Regards,
> 
> Antony.
> 
> -- 
> Never write it in Perl if you can do it in Awk.
> Never do it in Awk if sed can handle it.
> Never use sed when tr can do the job.
> Never invoke tr when cat is sufficient.
> Avoid using cat whenever possible.
> 
>                                                      Please reply to the list;
>                                                            please don't CC me.
> 
> 
> 
> 
> 
> 


-- 
Michael Gale
Network Administrator
Utilitran Corporation


  reply	other threads:[~2004-04-13 19:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13 17:41 FTP passive not working Michael Gale
2004-04-13 17:59 ` Rob Sterenborg
2004-04-13 19:13   ` Michael Gale
2004-04-13 19:43     ` Michael Gale
2004-04-13 20:08       ` Michael Gale
2004-04-13 20:20         ` Michael Gale
2004-04-13 19:37 ` Antony Stone
2004-04-13 19:47   ` Michael Gale [this message]
2004-04-13 20:00     ` Antony Stone

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=20040413134749.4e38203a@mgalepc.utilitran.com \
    --to=michael.gale@utilitran.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