LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2013, 03:25 PM   #1
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Rep: Reputation: 17
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.
 
Old 12-20-2013, 12:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
1 members found this post helpful.
Old 12-20-2013, 09:36 AM   #3
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
Chris,

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

SS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
outgoing registration email is not going I running webserver server behind a proxy tkmsr Linux - Server 3 04-17-2010 07:29 AM
How to set up an http proxy server SentralOrigin Linux - Networking 1 03-22-2009 05:35 PM
Easiest way to set up a proxy server? LinuxBlackBox Linux - Networking 3 10-28-2008 09:50 PM
how to set up a proxy server? h3xis Linux - Networking 5 06-15-2005 03:37 PM
Set up Proxy Server sanmadjack Linux - Software 6 02-15-2005 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration