From: Oran G <jihad@redwhitearmy.com>
To: netfilter@lists.netfilter.org
Subject: port forwaring from localhost to inet
Date: Sat, 04 Jun 2005 18:59:23 +0200 [thread overview]
Message-ID: <42A1DDEB.9040207@redwhitearmy.com> (raw)
hello,
I want to forward local requests to a mashine on the network.
I have a few hundred cgi scripts running on the webserver and using a
mysql-server on the same host. now i have set up a separate
mysql-linux-box and since it would be to much work to rewrite all the
scripts, im trying to redirect all trafic from localhost:3306 to
somepublicip:3306.
i used:
iptables -t nat -A PREROUTING -p tcp --dport 3306 -j DNAT --to 195.x.x.x
which works well form inet to inet but if I put '-o lo' to the line it
doesnt.
i understand that this could be becouse the source of the packets would
also require some rewriting, but i dont know how to do this. is there a
way to solve this with iptables or shoud i try it with ssh-tunels?
thax, oran g
next reply other threads:[~2005-06-04 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 16:59 Oran G [this message]
2005-06-06 8:56 ` port forwaring from localhost to inet Jörg Harmuth
2005-06-06 11:25 ` Oran G
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=42A1DDEB.9040207@redwhitearmy.com \
--to=jihad@redwhitearmy.com \
--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 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.