From: "Mark E. Donaldson" <markee@bandwidthco.com>
To: 'IT Clown' <iptables@mailbox.co.za>, netfilter@lists.netfilter.org
Subject: RE: passive ftp
Date: Sat, 17 Apr 2004 12:06:04 -0700 [thread overview]
Message-ID: <200404171906.i3HJ61Wr020416@server5.bandwidthco.com> (raw)
In-Reply-To: <web-287943006@mail01.infosat.net>
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of IT Clown
Sent: Saturday, April 17, 2004 10:51 AM
To: netfilter@lists.netfilter.org
Subject: passive ftp
Hi
I am having some trouble to access passive mode ftp sites.I have a firewall
with ip forwarding enabled.When a pc on the network want to access passive
ftp servers i need to do the following in my rules ( on the server ):
-A OUTPUT -p tcp -m multiport --dport 21,20 -j ACCEPT -A INPUT -m state
--state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -i eth0 -j ACCEPT -A
FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
But i do not want every query to be forwarded i only want say ftp access to
be forwarded. Why does the following not work ( on the server ):
-A FORWARD -p tcp -i eth0 -o ppp0 --dport 20 -j ACCEPT -A FORWARD -p tcp -i
eth0 -o ppp0 --dport 21 -j ACCEPT -A FORWARD -m state --state
RELATED,ESTABLISHED -j ACCEPT Regards
______________________________________________________________
Herbalife Independent Distributor http://www.healthiest.co.za
Be sure you have the two support modules you need loaded:
$MODPROBE ip_nat_ftp
$MODPROBE ip_conntrack_ftp
Passive FTP data transfers take place on a "high port" that the server
recommends to the client, and the client then establishes the new connection
on that high port that the server uses as well. Neither Port 20 or 21 are
used during this part of the process. Therefore, the ftp connection
tracking modules are necessary for all this to happen.
next prev parent reply other threads:[~2004-04-17 19:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 17:50 passive ftp IT Clown
2004-04-17 18:03 ` Is there a more active mailing list for security? Krunk
2004-04-17 19:13 ` Mark E. Donaldson
2004-04-17 18:12 ` passive ftp Krunk
2004-04-17 18:18 ` IT Clown
2004-04-17 19:06 ` Mark E. Donaldson [this message]
2004-04-18 16:24 ` NAT FTP module problem GoMi
-- strict thread matches above, loose matches on Subject: below --
2003-02-11 16:43 passive ftp Luis Miguel Cruz Miranda
2003-02-12 10:05 ` Cedric Blancher
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=200404171906.i3HJ61Wr020416@server5.bandwidthco.com \
--to=markee@bandwidthco.com \
--cc=iptables@mailbox.co.za \
--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.