Squid Proxy server
I am having a little problem with Squid I cant seem to figure out. I have a virtual dedicated server hosted at Godaddy running CentOS5. I have installed Webmin, and setup the Squid proxy server using the web interface.
It works perfectly and listens on the ports I have tried 3128, 8080, 80, 5678, and a few other random ones I have tried. Some reason however, for the life of me, I can't get it to run on port 8080
It doesn't matter if I set this by editing http_port in the squid.conf manually and reloading, or if I change it via the web interface. When I use lsof, squid is the only process listening on port 8080, if i shut it off, nothing is listening on port 8080.
It is a standard webmin installation and I have done nothing else in webmin at all. Does anyone have any idea what might be causing this?
PS> Firefox just gives the error "you are attempting to use a proxy which is refusing connections". Squid starts/stops fine but does give these messages when I run a restart from terminal of the squid processL
Anyone please help.
Stopping squid: 2009/04/27 18:06:20| parseConfigFile: line 4471 unrecognized: 'httpd_accel_with_proxy off'
2009/04/27 18:06:20| parseConfigFile: line 4472 unrecognized: 'httpd_accel_uses_host_header off'
2009/04/27 18:06:20| parseConfigFile: line 4473 unrecognized: 'httpd_accel_single_host off'
Are you sure you added the acl your_acl src 192.168.1.0/24 for your subnet or range of IPs
and given it http_access allow your_acl?
Thanks for responding,
At this stage I have the access controls set to Allow All and that's it. I was just checking in case that had something to do with it. Why would that make a difference to why it would listen on 5678 and not 8080?
It's also listening remotely, as I said, at Godaddy, so it has to listen for IP addresses wherever my laptop will be which could be anywhere, with any ip address.
run squid on any port, wont make any difference. it will applaied to your internal network only.
Are you allowing your proxy to public domain ? O_o
No the proxy is only for private use, but it is accessed obviously over the internet. ***It is not*** on the local network, it is hosted at Godaddy. Squid works fine on other ports, but NOT on 8080. When I set it to 8080, my local machines simply say the proxy is refusing connections. Changing the port back to 5678, or 3128, or many other figures work correctly. I need it, however, to work on port 8080 and for some reason this is not happening.
Again, as said, running lsof there is nothing else found to be listening to port 8080 so it does not make any sense to me. Does anyone have any suggestions as to how I can begin to troubleshoot this?
make sure port 8080 isn't blocked
Thats the output from lsof. Just to make certain i ran
[root@ip-208-****** ~]# lsof -i :8080
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
squid 5849 squid 13u IPv4 154886428 TCP *:webcache (LISTEN)
Squid will run on port 8081 fine, but not on 8080, yet LSOF says nothing else is running there listening, and squid is starting fine (i.e. not saying that it cannot bind te port).
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
Any suggestions? Once again this is a standard config from Webmin, but I have tried editing the file manually with no luck.