Re: IP translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tony.chamberlain@xxxxxxxxx wrote:
I need a MAGIC BOX to do this




------ IP ADD 1, PORT 1 ---->   MAGIC BOX -----> IP ADD 2, PORT 2
(eg convert something like 192.168.5.191/3660 to something like 192.168.5.100/222
but this is just an example).

Can anyone suggest anything? Preferably with a router (we have Linksys BEFSX41)
or with CentOS 4.5 (would have to be on the outgoing side).

You can do this with a trivial iptables setup, although you will want to use some thought about the setup, use DNAT on the incoming packets. I would worry about overhead, but if you have enough capacity to run 100 copies of MySQL, you have either tons of capacity or larger problems than iptables overhead.

What it actually will be used for is to run 100 or so instances of mysql on the same machine but on different ports. Then each instance of mysql will have its onw logical
IP address.



--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux