Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

FATAL ERROR: auth_param basic program /usr/lib/squid3/ncsa_auth: (2) No such file or directory ... f

I get this error when trying to start squid on debian jessie. How to fix it or do you know script to install it without authentication?

Comments

  • you allow everybody to connect?

  • change to:

    /usr/lib/squid3/basic_ncsa_auth
    

    Done.

    Thanked by 2cikatomo netomx
  • @century1stop said:
    you allow everybody to connect?

    i dont want to, but i cannot use with authentication. How can I prevent scrappers except by ip filtering?

  • linuxthefishlinuxthefish Member
    edited May 2016

    Yeah the squid package on Debian is a proper cunt

    auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
    auth_param basic children 1
    auth_param basic credentialsttl 1 minute
    auth_param basic casesensitive off
    forwarded_for delete
    request_header_access Via deny all

    then run "ln -s /usr/lib/squid3/ncsa_auth /usr/lib/squid3/basic_ncsa_auth"

    Thanked by 2Foul netomx
  • FoulFoul Member

    I like your necro.

  • Basic auth in squid does not seem to work at all in Debian, if anyone knows why I would be very greatful.

    config for auth:

    auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
    auth_param basic children 1
    auth_param basic credentialsttl 1 minute
    auth_param basic casesensitive off
    forwarded_for delete
    request_header_access Via deny all
    
    acl my_auth proxy_auth REQUIRED
    http_access deny !my_auth
    http_access allow my_auth
    
    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny to_localhost
    
    http_access allow localhost
    http_access deny all

    Commands:

    htdigest -c /etc/squid3/passwd fish linuxthefish

    After trying in Firefox, pop up box asks for username and password, enter that and Firefox says "The proxy server is refusing connections"

    Error log says:

    1464462761.707      0 81.147.160.253 TCP_DENIED/407 3762 CONNECT tiles.services.mozilla.com:443 - NONE/- text/html
    1464462761.718      0 81.147.160.253 TCP_DENIED/407 3774 CONNECT location.services.mozilla.com:443 - NONE/- text/html
    1464462772.695      0 81.147.160.253 TCP_DENIED/407 3766 CONNECT shavar.services.mozilla.com:443 - NONE/- text/html
    1464462814.496      0 81.147.160.253 TCP_DENIED/407 3762 CONNECT tiles.services.mozilla.com:443 - NONE/- text/html
    1464462814.497      0 81.147.160.253 TCP_DENIED/407 3762 CONNECT snippets-stats.mozilla.org:443 - NONE/- text/html
    1464462814.498      0 81.147.160.253 TCP_DENIED/407 3774 CONNECT location.services.mozilla.com:443 - NONE/- text/html
  • edited May 2016

    @linuxthefish

    Dude are you drunk?

    Necro a 6 month old thread with a supposed fix, then two posts down you state it doesn't work?

    WTF?

  • Thanks! Ended up using this with a few modifications to get what i needed to do done.

    Thanked by 1netomx
Sign In or Register to comment.