Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Linux box (Ubuntu 9.10) at a different location. I installed squid proxy and tried using that IP and port (opened 3128 at that location) in Firefox. I can't get it to work.

My current scenario :

  • The current location ISP's IP is 72.87.54.XX
  • Each machine in the network has the IP range 192.168.0.0/104

In /etc/squid/squid.conf : how would I configure this part in acl :

acl internal_network src 192.168.0.0/104
http_access allow internal_network

Where would I put the actual IP 72.87.54.XX in the squid.conf file to be allowed for internet traffic at the remote location?

share|improve this question
    
Define 'doesn't work'. Do you get squid access denied pages or what? If you do a tcpdump on the squid box do you see the incoming requests for port 3128? What do you see in the squid cache/access logs? –  Zoredache Jan 4 '12 at 21:19
1  
BTW You know that Ubuntu 9.10 is no longer supported right? You should seriously consider updating, so you can receive security patches. –  Zoredache Jan 4 '12 at 21:23
    
Yeah, we will have to place an update request for the latest version of Ubuntu. Checked the logs, I see the IP from the remote location where a test machine was used to check Squid. It worked at the remote location but not from my location. I don't get a Squid denied access page either. –  ThinkCode Jan 4 '12 at 22:40
add comment

1 Answer

You will want an extra couple of lines like this:

acl office_network src 72.87.54.0/104
http_access allow office_network

The name "office_network" is arbitrary and should match whatever makes sense for what the IP addresses are used for.

The /104 is not what I'm used to seeing. This is normally /24 which represents an IPv4 netmask covering the first three octets and leaving the last one free.

share|improve this answer
    
Actually, on reading your question again, I'm not sure which of the IP addresses is the Squid server and which is your office. Could you clarify? –  Ladadadada Jan 4 '12 at 17:52
    
Squid server has a different IP like 31.101.xx.xx port 3128 open. My office : Comcast's IP is 72.87.54.xx. I thought 72.87.54.0/104 is supposed to be the range. 24 makes sense. Will try... –  ThinkCode Jan 4 '12 at 17:54
    
This didn't work either :( I am kinda lost on the config file! –  ThinkCode Jan 4 '12 at 18:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.