Linux Netfilter discussions
 help / color / mirror / Atom feed
* Maybe a Newbie question about SNAT/DNAT
@ 2005-05-12 21:44 melim
  2005-05-13 10:17 ` Jörg Harmuth
  0 siblings, 1 reply; 2+ messages in thread
From: melim @ 2005-05-12 21:44 UTC (permalink / raw)
  To: netfilter

I had some problems trying to set up my DMZ using iptables.

I have a valid IP in a interface eth2 and a internal net ip on eth0, I'm
using some well documented rules to redirect port requisitions to another
internal server.

iptables -t nat -A PREROUTING -p tcp --dport 80 -d 200.180.X.X -j
DNAT --to-destination 192.168.200.251
iptables -t nat -A POSTROUTING -p tcp --sport 80 -s 192.168.200.251 -j
SNAT --to-source 200.180.X.X

Sniffing with tcpdump in my webserver (192.168.200.251), I saw that the
requisition packets are comming.
But, there is no answer back to my browser or whatever.

I´ve put a LOG on postrouting in the "router" machine, and I can't see
anything comming back from the webserver, nether through tcpdump.

On the webserver I have a default gateway defined to another router, but
even removing it, won't work.
Only works when I defined the default GW to my router machine, but I don't
want to do this.

I'll be gratefull for any help,

and sorry for my poor english.




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

end of thread, other threads:[~2005-05-13 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 21:44 Maybe a Newbie question about SNAT/DNAT melim
2005-05-13 10:17 ` Jörg Harmuth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox