From: "it clown" <suse@mailbox.co.za>
To: netfilter@lists.netfilter.org
Subject: ftp server
Date: Sun, 29 May 2005 10:44:04 +0200 [thread overview]
Message-ID: <web-768144019@mail01.infosat.net> (raw)
Hi All,
I have a ftp server running on the box connected to the
internet with iptables. I would like to allow ftp passive
connections.I have done the following and it does not want
to work:
iptables -A INPUT -p tcp --sport 21 -m state --state
ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 21 -m state --state
NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 1024: --dport 1024: -m
state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 1024: --dport 1024: -m
state --state ESTABLISHED,RELATED -j ACCEPT
I have done the following and it works but it is not
passive:
iptables -A INPUT -p tcp -m multiport --dport 20 -j ACCEPT
iptables -A INPUT -p tcp -m multiport --dport 21 -j ACCEPT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j
ACCEPT
What are the best rules to allow ftp passive connections?
I also did load ip_conntrack_ftp.
Thanks
Regards
_____________________________________________________________________
For super low premiums, click here http://www.dialdirect.co.za/quote
next reply other threads:[~2005-05-29 8:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-29 8:44 it clown [this message]
2005-05-30 10:09 ` ftp server Jörg Harmuth
-- strict thread matches above, loose matches on Subject: below --
2003-03-24 14:53 FTP server Chris Garringer
2003-03-24 15:49 ` Rob Sterenborg
2003-03-24 16:24 ` Chris Garringer
2003-03-24 18:00 ` Rob Sterenborg
2003-03-24 18:15 ` Chris Garringer
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=web-768144019@mail01.infosat.net \
--to=suse@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox