From: "Rob Sterenborg" <rob@sterenborg.info>
To: 'Matti Luoma' <matti.luoma@bitboys.com>, netfilter@lists.netfilter.org
Subject: RE: FTP and netfilter
Date: Wed, 23 Apr 2003 20:34:23 +0200 [thread overview]
Message-ID: <002e01c309c6$f6712290$0401000a@sterenborg.info> (raw)
In-Reply-To: <NIENICGJBBAFMLFBMABHOEPACDAA.matti.luoma@bitboys.com>
> What kinda lines i need to get FTP working from from LAN, if
> i use a linux as gateway machine..
insmod ip_conntrack_ftp
insmod ip_nat_ftp
iptables -P FORWARD DROP
iptables -A FORWARD -I <eth_lan> -o <eth_inet> -s <net_lan> -j ACCEPT
iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j SNAT
--to-destination <ip_inet>
(Or, if you have a dynamic IP or a ppp inet nic :)
iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j MASQUERADE
Gr,
Rob
next prev parent reply other threads:[~2003-04-23 18:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 17:46 FTP and netfilter Matti Luoma
2003-04-23 18:34 ` Rob Sterenborg [this message]
2003-04-24 6:00 ` Rob Sterenborg
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='002e01c309c6$f6712290$0401000a@sterenborg.info' \
--to=rob@sterenborg.info \
--cc=matti.luoma@bitboys.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