Hi everyone,
I have successfully installed Squid on my server (VPS, CentOS 4.4, CPanel) and it runs just fine. However, there is a small problem that's driving me crazy...
I have more than one IP address on the server. Let's say the main server IP is 1.2.3.4, it's the IP address for the main DNS server etc. Then I have another IP address - let's say 1.2.3.5 that's also assigned to my server. I can ping it with no problems.
Now, what I would like to do is to force Squid to listen on the second IP only so I edit squid.conf with something like:
http_port 1.2.3.5:8080
This indeed makes Squid to listen only on the IP 1.2.3.5 and port 8080 and everything seems to work as intended. Except for one detail...
Despite Squid is listening and accepting connections on the second IP, it reveals the first/main server IP to the destination page. Even if I config my Firefox or MSIE to use IP 1.2.3.5, port 8080, services such as http://www.danasoft.com/vipersig.jpg tell me my IP is 1.2.3.4 .
Do you have an idea what could be causing this?
Thanks!
Tomas
I have successfully installed Squid on my server (VPS, CentOS 4.4, CPanel) and it runs just fine. However, there is a small problem that's driving me crazy...
I have more than one IP address on the server. Let's say the main server IP is 1.2.3.4, it's the IP address for the main DNS server etc. Then I have another IP address - let's say 1.2.3.5 that's also assigned to my server. I can ping it with no problems.
Now, what I would like to do is to force Squid to listen on the second IP only so I edit squid.conf with something like:
http_port 1.2.3.5:8080
This indeed makes Squid to listen only on the IP 1.2.3.5 and port 8080 and everything seems to work as intended. Except for one detail...
Despite Squid is listening and accepting connections on the second IP, it reveals the first/main server IP to the destination page. Even if I config my Firefox or MSIE to use IP 1.2.3.5, port 8080, services such as http://www.danasoft.com/vipersig.jpg tell me my IP is 1.2.3.4 .
Do you have an idea what could be causing this?
Thanks!
Tomas