Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Running Proxy Server

    Hi ..

    I am new to Linux .. I just wanted to try out running a proxy server ..

    I ll tell what i am trying to accomplish .. I want my friend to connect to the internet (http) through my computer ..

    I heard that Squid is the server .. I tried running it but its not working .. When my friend tries its saying "Server Timed out" or something ..

    Please someone tell me how proxy servers work and how should i configure squid to do the job .. thanks

  2. #2
    Just Joined!
    Join Date
    Jul 2005
    Can you copy your squid.conf file
    so i can help you

  3. #3
    hey its 3000 lines of code !!!

  4. $spacer_open
  5. #4
    http_port 3128
    auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours
    auth_param basic casesensitive off
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    acl all src
    acl manager proto cache_object
    acl localhost src
    acl to_localhost dst
    acl SSL_ports port 443 563
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    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_reply_access allow all

  6. #5
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    you don't have it listed, but do you have a line like this

    http_access deny all

    in your squid.conf. It is usually that way by default. If so then change deny to allow and restart squid and try again.

  7. #6
    there is a line but its commented

    # http_access deny all

    i changed it as http_access allow all

    still when my frnd puts proxy ip as my global ip and port as 3128 (as given in conf) he gets connection timed out ..

  8. #7
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    if he was hitting your proxy and just getting denied access to browse using it, then he would get a squid error page, not timed out.

    do you have a firewall and/or router. if you have either (or both) make sure the ports are open.

    an easy way to test squid is to try on the local machine. fire up firefox and configure the proxy to use localhost and 3128 and see what happens.

    if you can't connect locally then I would check squid error logs next.

    also make sure after you make changes you are either restarting squid or squid -k reconfigure

  9. #8
    Just Joined! pcrack's Avatar
    Join Date
    May 2006

    squid config

    Hi the probelm is that u did not configure ur ACL's

    Add this on the acl lists
    1) acl allow mynetwork src xxxx/xxxx

    add this
    http_access allow mynetwork

    3)configure your browser to use your proxy server ip address and the port of squid which default is 3128

    hope this will help u

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts