Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, 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, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    13

    Squid Proxy server


    Hello,

    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
    Code:
    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'
    Anyone please help.

    -Luke

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    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?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    13
    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.

    -Luke

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    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
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  6. #5
    Just Joined!
    Join Date
    Apr 2006
    Posts
    13
    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?

    -Luke

  7. #6
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    make sure port 8080 isn't blocked
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  8. #7
    Just Joined!
    Join Date
    Apr 2006
    Posts
    13
    Code:
    [root@ip-208-****** ~]# lsof -i :8080
    COMMAND  PID  USER   FD   TYPE    DEVICE SIZE NODE NAME
    squid   5849 squid   13u  IPv4 154886428       TCP *:webcache (LISTEN)
    Thats the output from lsof. Just to make certain i ran
    Code:
    iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
    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).

    Any suggestions? Once again this is a standard config from Webmin, but I have tried editing the file manually with no luck.

Posting Permissions

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