Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

1) The server is running Ubuntu and is on a LAN (192.168.9.*)
2) The server is running several services on local IPs (Eg: VPS (OpenVZ))
3) A client connecting from vps1.mydomain.com will receive data from the (Slightly similar to Xinetd but without listening on a certain port)
4) The client would be able to access all services that are hosted publicly on (Apache, Squid, etc...)
5) vps1.mydomain.com:3128 would allow you to connect to the Squid proxy server.
Is this possible?

Thanks! =)

share|improve this question
I can't see the connection between the title and body of your question. –  John Gardeniers Oct 7 '10 at 20:42

1 Answer 1

up vote 0 down vote accepted

If your client is connecting from vps1.mydomain.com (as specified in example #3), then trying to connect to vps1.mydomain.com:3128 (example #5) will mean that they're connecting to the same machine (or NAT device) that they're coming from.

The only way to get around that is to implement some sort of proxy on the client machine or to implement some sort of IP rewriting that will forward vps1.mydomain.com:3128 over to

share|improve this answer
Thanks. I'll try to make it work :) –  Justin Oct 8 '10 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.