Results 1 to 8 of 8
Thread: Running Proxy Server
Enjoy an ad free experience by logging in. Not a member yet? Register.
Running Proxy Server
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
- Join Date
- Jul 2005
Can you copy your squid.conf file
so i can help you
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 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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
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.
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 ..
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
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
2)at "INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS"
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