From: Ryan Johnson <rjohnson@espgroup.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Source IP translation
Date: Thu, 23 Sep 2004 03:58:28 +0000 [thread overview]
Message-ID: <415249E4.9070109@espgroup.net> (raw)
Hey everyone,
OK, not sure if this is more appropriate on the netfilter mailing list,
but here it goes.
This is a weird setup that is out of my company's control. We have a
webserver setup which will be contacted by several clients with
different ip. All of these client ip must be translated to the same ip.
The problem is this all has to happen on the same box. So before the
packet reaches the apache webserver daemon, can the kernel running on
the webserver translate the source address?
I have tried iproute2 and iptables with no luck. Looked at netfilter
patch-o-matic-ng and did not see anything that would help me. Is this
even possible?
I would need something like this
iptables -A PREROUTING -i ethX -s $CLIENTIP -d $WEBSERVER -j SNAT --to
$NEWCLIENTIP
but the SNAT is not supported in PREROUTING.
Any ideas? I not familiar with iproute2 so if there is a solution could
you post the commands.
Thank you in advance,
Ryan
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2004-09-23 3:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-23 3:58 Ryan Johnson [this message]
2004-09-23 19:02 ` [LARTC] Source IP translation Corey Rogers
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=415249E4.9070109@espgroup.net \
--to=rjohnson@espgroup.net \
--cc=lartc@vger.kernel.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.