From: Florent B <florent@coppint.com>
To: lartc@vger.kernel.org
Subject: SNAT to local service ?
Date: Wed, 16 Mar 2016 09:23:51 +0000 [thread overview]
Message-ID: <56E92627.7040808@coppint.com> (raw)
Hi everyone,
I have a Debian server acting as Load-Balancer with Keepalived/IPVS.
I would like to also do SNAT for requests from my local computers to a
specified public IP.
It works well, with a simple SNAT rule like this :
iptables -t nat -A POSTROUTING -s 10.111.0.0/16 -o eth1 -j SNAT --to
174.12.XX.XXY
174.12.XX.XXY is a public address configured on my server.
It works for all services hosted on the Internet, but not for others
public services Load-balanced by my server : I have for example an IP
174.12.XX.XXZ configured as well and my clients couldn't connect to it
(time out).
I would like my local clients to be SNATted to 174.12.XX.XXY to access
to 174.12.XX.XXZ.
What should I take care of, to do this ? Do I have to treat those
packets specificaly ?
Thank you a lot.
Florent
reply other threads:[~2016-03-16 9:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=56E92627.7040808@coppint.com \
--to=florent@coppint.com \
--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.