All of lore.kernel.org
 help / color / mirror / Atom feed
* firewalling
@ 2003-02-18  9:45 Eric Constantineau
  2003-02-18 10:19 ` firewalling Cedric Blancher
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Constantineau @ 2003-02-18  9:45 UTC (permalink / raw)
  To: netfilter

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-18 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-18  9:45 firewalling Eric Constantineau
2003-02-18 10:19 ` firewalling Cedric Blancher

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.