From: Ralf Spenneberg <lists@spenneberg.org>
To: Richard Whittaker <RWHITTAKER@nwtel.ca>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: NetFilter DMZ question...
Date: 25 May 2003 09:14:49 +0200 [thread overview]
Message-ID: <1053846889.1862.2.camel@kermit.spenneberg.de> (raw)
In-Reply-To: <sece223b.030@nwtel.ca>
Am Fre, 2003-05-23 um 22.29 schrieb Richard Whittaker:
> Greetings:
>
> We have a webserver living in a DMZ, and I have the following rule
> setup to allow this:
>
> /usr/sbin/iptables -A PREROUTING -t nat -i eth1 -p tcp -d 199.85.228.1
> --dport 80 -j DNAT --to 192.168.70.3:80
>
> Unfortunately, the web server only sees the IP address of the
> interface, not the source IP address, which kinda messes with our
> statistical programs, since the only address the web server "sees" is
> the same one over, and over... Is there any way to present the web
> server with the "real" address, or should it be be already?....
Apparently you have an unqualified SNAT rule lying around, since DNAT
only changes the destination address. Look for your SNAT rules and tie
them to the external interface:
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 199.85.228.1
Cheers,
Ralf
>
> Thanks,
> Richard...
>
>
> Richard Whittaker, CISSP
> System Manager
> NorthwesTel Inc.
> Whitehorse, YK
> (867) 393-7756
>
--
Ralf Spenneberg
RHCE, RHCX
Book: Intrusion Detection für Linux Server http://www.spenneberg.com
IPsec-Howto http://www.ipsec-howto.org
Honeynet Project Mirror:
http://honeynet.spenneberg.org
next prev parent reply other threads:[~2003-05-25 7:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-23 20:29 NetFilter DMZ question Richard Whittaker
2003-05-25 7:14 ` Ralf Spenneberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-24 1:22 George Vieira
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=1053846889.1862.2.camel@kermit.spenneberg.de \
--to=lists@spenneberg.org \
--cc=RWHITTAKER@nwtel.ca \
--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