From: Fu-Tung Cheng <futung.cheng@yahoo.com>
To: netfilter@vger.kernel.org
Subject: 2 ips, same port, forward to original ip but different port
Date: Tue, 4 Nov 2008 17:38:13 -0800 (PST) [thread overview]
Message-ID: <54857.29141.qm@web45902.mail.sp1.yahoo.com> (raw)
Hi,
Here is my current rule set. I've tried other combinations of settings but with no more luck than the current rule set.
$IPTABLES -A FORWARD -p tcp --destination-port 80 -j ACCEPT
$IPTABLES -t nat -A PREROUTING -j REDIRECT -p tcp --destination-port
80 --to-ports 12080
Now what I need to happen is that requests coming into ip1:80 goto
ip1:12080 and ip2:80 goto ip2:12080. What seems to be happening is
that all requests coming into 80 are going to ip1:12080.
Any pointers gladly accepted.
Thank you,
Fu-Tung
next reply other threads:[~2008-11-05 1:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 1:38 Fu-Tung Cheng [this message]
2008-11-05 9:42 ` 2 ips, same port, forward to original ip but different port Pascal Hambourg
2008-11-05 18:32 ` Fu-Tung Cheng
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=54857.29141.qm@web45902.mail.sp1.yahoo.com \
--to=futung.cheng@yahoo.com \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox