Re: [squid-users] whitelisted IP problem

From: Edmonds Namasenda <namasenda_at_gmail.com>
Date: Mon, 19 Mar 2012 17:03:09 +0000

Vijay,
Just a quick look has shown me you did not specify your network and there are a few typo errors.
Re-adjust, test, and fill us in some more.

I.P.N Edmonds
Systems | Networks | ICTs
UgM: +256 71 227 3374 | TzM: +255 68 422 1561
# 22249, Kampala Uganda.

-----Original Message-----
From: Vijay S <vijay_at_reactmedia.com>
Date: Mon, 19 Mar 2012 22:28:03
To: <squid-users_at_squid-cache.org>
Subject: [squid-users] whitelisted IP problem
Hi

I have a my server box hosting apache and squid on centos machine.
When I send my request for clients feeds it works as they have
whitelisted my IP address, and when I make the call via squid its give
me invalid IP. I checked the access log for more information and found
out instead of sending my IP address its sending the localhost IP
address (127.0.0.1).

I googled a little and found that using tcp_outgoing_address directive
I can control the outgoing IP address and to my bad luck this didn’t
work

My configuration file is as follows

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/32
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow localhost
http_access deny all

icp_access allow all

http_port 3128

visible_hostname loclahost
debug_options ALL,1 33,2 28,9
tcp_outgoing_address 122.166.1.184

Can somebody help me with configuration for the my servers. It will be
of great help.

Thanks & Regards
Vijay
Received on Mon Mar 19 2012 - 17:03:20 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 19 2012 - 12:00:03 MDT