I have clients that will be connecting to a server (ServerA) through a switch. ServerA connects to the switch through eth0 and i use another ethernet card - eth1 to connect to the Internet through an ADSL router. The clients can access the internet with no problem, i have set up IP forwarding and IP masquerading on ServerA.
The problem is that i have another server (ServerB) with an external IP address which is where i want all the traffic from the clients to pass through before going out to the Internet. So i want any clients internet access to go out through the ADSL router into the internet and then through ServerB before going to the actual Internet site. ServerB is where the billing and statistics of the clients will be recorded, so I need to pass the clients requests through ServerB. I cannot modify the ADSL router configuration and I dont want to use VPN. Is there some way to achieve this by modifying ServerA or ServerB?
I am using Linux Red Hat 9 on both servers with Apache version 2 and also running a DHCP server and a DNS server.
When I understand your situation right , then:
You can install a Proxy Server on your linux box and enter the Proxy in all your clients..Or you can setup a "transparent Proxy" which is completley transparent to the clients, and you don�t have to enter the proxy in your clients.
With the proxy configured, all clients MUST pass the proxy , and the proxy will "download" the requested page and send it to the client (and the proxy will save a copy on its harddisk/memory for faster access when the same page is again requested)
Many environments have a transparent proxy for accelerating the HTTP Access for the entire network. At the other side of the knife , you cant access directly services with a proxy (POP3,SSH for example)....
Have a look at www.squid-cache.org...I�m sure you will find the squid package at your Linux CD�s too.
Thanks for the reply networkfre@k.
I actually have already set up serverA as a Transparent proxy and that is working fine. The clients can already access the internet and use email but i want to direct all the traffic to another server (serverB) located in another country and across the internet. It would be very much like a VPN but i was hoping there was another way to do it.