Linux Netfilter discussions
 help / color / mirror / Atom feed
* 2 ips, same port, forward to original ip but different port
@ 2008-11-05  1:38 Fu-Tung Cheng
  2008-11-05  9:42 ` Pascal Hambourg
  0 siblings, 1 reply; 3+ messages in thread
From: Fu-Tung Cheng @ 2008-11-05  1:38 UTC (permalink / raw)
  To: netfilter

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



      


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-05 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05  1:38 2 ips, same port, forward to original ip but different port Fu-Tung Cheng
2008-11-05  9:42 ` Pascal Hambourg
2008-11-05 18:32   ` Fu-Tung Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox