Service redirection on same network
Posted
by
Unode
on Server Fault
See other posts from Server Fault
or by Unode
Published on 2012-10-14T07:33:10Z
Indexed on
2012/10/14
9:40 UTC
Read the original article
Hit count: 195
I have a network on which I run multiple servers each dedicated to a given service.
Because most services run on distinct ports I'm currently looking for a way of unifying "all" services into a single "proxy" machine. The idea is to abstract which machine is being accessed but still allow direct connection if needed/requested.
This "proxy" machine has only one network interface which is part of the same network as all the other service providing machines.
I've looked into Routing and NAT but I've so far failed to figure out how to make it work. I tried to achieve this using shorewall but couldn't find clear examples. However I'm not entirely sure this is the best/simplest strategy.
With that said, what would be the best way of achieving this result?
Example case:
Proxy IP - Listening port - Send requests to
192.168.0.50 80 192.168.0.1:80
" 22 192.168.0.2:2222
" 3306 192.168.0.3:3000
" 5432 192.168.0.4:5432
" 5222 192.168.0.5:5222
PS: I'm not concerned with the single-point-of-failure nature of the proxy.
Thanks
© Server Fault or respective owner