LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squic proxy server -- set outgoing IP (https://www.linuxquestions.org/questions/linux-software-2/squic-proxy-server-set-outgoing-ip-4175488602/)

Sanford Stein 12-19-2013 03:25 PM

Squic proxy server -- set outgoing IP
 
I am trying to use the squid proxy server to send a consistent IP address to a remote site. I tried the command tcp_outgoing_address in squid.conf, but then the browser fails with a "Socket Failure...Squid is unable to create a tcp socket". If I leave the command off, I can get to the remote site but that site sees my workstation IP and not the IP of the server running squid.

Is there a way to get tcp_outgoing_address to work? Or is there a better way to accomplish what I am trying to do here?

I have already checked squid's log and /var/log/messages and found nothing of interest.

Thanks,
Sanford Stein
CyberTools Inc.

acid_kewpie 12-20-2013 12:25 AM

Given I understand what "sees" means here (what does whatismyip.com say it is??) tcp_outgoing_address is used for the actual network level connection, which is always an address on the squid server itself otherwise the basic connectivity is impossible. it will see your workstation IP though as Squid will (and should) add an X-Forwarded-For header to the request on the way through. You can tune this behaviour if you want to - http://www.squid-cache.org/Doc/config/forwarded_for/ just note that you've mixed up the management and use of IP address information at different levels of the stack. tcp is OSI Layer 4, and the XFF header information is nice and fluffy up at layer 7 so are technically totally unrelated, despite both being about IP addressing.

Sanford Stein 12-20-2013 09:36 AM

Chris,

Thanks for your response. 'fowarded_for delete' in squid.conf did the trick.

SS


All times are GMT -5. The time now is 03:27 AM.