From: <hamals@infinito.it>
To: netfilter@lists.netfilter.org
Subject: FTP rules
Date: Mon, 31 Jan 2005 17:40:24 +0100 [thread overview]
Message-ID: <web-42708298@infinito.it> (raw)
my PCs behind my firewall didn't get ftp connection to
any external ftp server. Why?
/sbin/modprobe ip_contrack
/sbin/modprobe ip_contrack_ftp
# LAN -> INTERNET
iptables -A FORWARD -i $LAN -o $INET -p tcp --dport 21 -j
ACCEPT
iptables -A FORWARD -i $LAN -o $INET -p tcp --dport 20 -j
ACCEPT
# INTERNET ->LAN
iptables - A FORWARD -i $INET -o $LAN -p tcp -m state
--state ESTABLISHED, RELATED -j ACCEPT
# NAT
iptables -t nat -A POSTROUTING -s $IPs_LAN -o $INET -j
SNAT --to-source $INET_IP
Thanks fo help
_______________________________________
Connessione ed e-mail gratuita da 10 mb
consultabile tramite web e tramite pop.
www.infinito.it vieni a scoprire tutti
i nostri servizi!
http://www.infinito.it/xmail
next reply other threads:[~2005-01-31 16:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 16:40 hamals [this message]
2005-01-31 16:41 ` FTP rules Jason Opperisano
-- strict thread matches above, loose matches on Subject: below --
2005-08-16 11:00 ftp rules varun_saa
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-42708298@infinito.it \
--to=hamals@infinito.it \
--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