From: Eric Constantineau <mekanik@nerim.net>
To: netfilter@lists.netfilter.org
Subject: firewalling
Date: Tue, 18 Feb 2003 10:45:05 +0100 [thread overview]
Message-ID: <3E5200A1.CDFD3C90@nerim.net> (raw)
Hi everybody,
I run iptables in my "devil-linux" firewall but I still have some
questions.
I still have problems with FTP, it has to be set with "enable firewall
access" to be able to run well (I run cuteftp), passive mode or not. I
want ftp to be transparent as if there were no firewall at all, so users
are not annoyed by settings...
Another thing is how could I set up a web server behind my firewall, I
read a bit about DNAT and SNAT, but still doesnt work from internet. It
works inside, in the same LAN, but over the net, the server is
unreachable...
See the problem is, all my lan, including the firewall, has the same WAN
IP Address, lets say 1.2.3.4... So when I connect to 1.2.3.4 with
destination port 80, with my DNAT settings :
iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp --dport 80 -j DNAT
--to-destination 4.3.2.1
it should redirect all packets to the web server lan ip(4.3.2.1)
then for the connexion within the LAN to this server I still have to add
this line :
iptables -t nat -A POSTROUTING -s 4.3.2.1 -p tcp --sport 80 -j SNAT
--to-source 1.2.3.4
I made that from scratch reading this quite good doc :
http://www.netfilter.org/documentation/tutorials/blueflux/iptables-tutorial.html
at 5.5.11. DNAT target
but still, doesnt work perfectly, :-(
Thanks for helping me out
Eric
next reply other threads:[~2003-02-18 9:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-18 9:45 Eric Constantineau [this message]
2003-02-18 10:19 ` firewalling 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=3E5200A1.CDFD3C90@nerim.net \
--to=mekanik@nerim.net \
--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.