From: "Christian Gmeiner" <christian@visual-page.de>
To: netfilter@lists.netfilter.org
Subject: Problem with passiv FTP
Date: Wed, 25 Feb 2004 22:00:22 +0100 [thread overview]
Message-ID: <001501c3fbe2$6306b330$0600a8c0@blackbox> (raw)
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
Hi people.
I got active FTP working, but i also need the passive one.
Here is my stuff:
# Port 21
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
# aktiv - works
iptables -A INPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT
# passiv
iptables -A INPUT -p tcp --sport ${UNPRIVPORTS} --dport ${UNPRIVPORTS} -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport ${UNPRIVPORTS} --dport ${UNPRIVPORTS} -m state --state ESTABLISHED,RELATED -j ACCEPT
I have everything set to drop and i am alowing this protocols and ports:
# TCP in+out
#
#
TCP_IN_OUT="ssh"
# TCP out
#
# 5190 = ICQ
#
TCP_OUT="5190 http https 25 ftp ftp-data pop3 smtp"
# TCP in
#
TCP_IN=""
# UDP in+out
#
UDP_IN_OUT="domain ssh"
# UDP out
#
#
UDP_OUT="https"
# UDP in
#
UDP_IN=""
UNPRIVPORTS="1024:65535"
So.. i must now allow the UNPRIVPORTS, but how i am doing this?
Thanks, Christian Gmeiner
[-- Attachment #2: Type: text/html, Size: 3147 bytes --]
next reply other threads:[~2004-02-25 21:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-25 21:00 Christian Gmeiner [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-25 21:31 Problem with passiv FTP Daniel Chemko
2004-02-25 21:56 ` Christian Gmeiner
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='001501c3fbe2$6306b330$0600a8c0@blackbox' \
--to=christian@visual-page.de \
--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.