Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Changes to Squid Configurator

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vicheslav
      last edited by

      Incorrect behavior of the configurator creates a list noaut (Subnets that don't need authentication) wrong.

      From comment "Enter each subnet or IP address on a new line (in CIDR format, e.g.: 10.5.0.0/16, 192.168.1.50/32) that should not be asked for authentication to access the proxy."
      squid.inc generated squid.conf
      …
      acl noauth src  subnet/mask
      subnet/mask
      subnet/mask
      ......

      Need to work
      acl noauth src  subnet/mask subnet/mask subnet/mask …

      Please fill in the source package chenge squid.inc

      
      .....
      else {
      //		$noauth = implode(' ', explode("\n", base64_decode($settings['no_auth_hosts'])));
      //		if (!empty($noauth)) {
      //			$conf .= "acl noauth src $noauth\n";
      //			$valid_acls[] = 'noauth';
      
      // Corrector
      		$noauth = explode("\n", base64_decode($settings['no_auth_hosts']));
      		$noauthed = "";
      		foreach ($noauth as $subnet) {
      			if(!empty($subnet)) {
      				$subnet = trim($subnet);
      				$noauthed .= "$subnet ";
      			}
      			}
      
      		if (!empty($noauthed)) {
      			$conf .= "acl noauth src $noauthed\n";
      			$valid_acls[] = 'noauth';
      		}
      // EndCorrector
      		}
      .....
      
      

      Note a very important work at least for me since that moment gave me a lot of inconvenience since the version 1.2.3 and version 2.0 is preserved.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.