Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
SSO working for Squid excepted from VPN
« previous
next »
Print
Pages: [
1
]
Author
Topic: SSO working for Squid excepted from VPN (Read 1731 times)
bozox
Newbie
Posts: 1
Karma: 0
SSO working for Squid excepted from VPN
«
on:
December 04, 2023, 03:22:47 pm »
Hi,
I succeeded to configure SSO on my Squid, it works well with my Win10 clients.
But when the same clients are connected via our VPN, an authentication panel appears and I see this line :
squid kid1| ERROR: Negotiate Authentication validating user. Result: {result=BH, notes={message: received type 1 NTLM token; }}
However, I can see packets to and from our RODC.The Krbs test login of the SSO plugin works.
Any idea ?
Thx,
Chris
this is my squid.conf :
#
# Automatic generated configuration for Squid.
# Do not edit this file manually.
#
# Setup regular listeners configuration
http_port X.X.X.X:8080
acl ftp proto FTP
http_access allow ftp
# Setup ftp proxy
# Rules allowing access from your local networks.
# Generated list of (internal) IP networks from where browsing
# should be allowed. (Allow interface subnets).
acl localnet src X.X.X.X/24 # Possible internal network (interfaces v4)
# Default allow for local-link and private networks
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
# ACL - Allow localhost for PURGE cache if enabled
acl PURGE method PURGE
http_access allow localhost PURGE
http_access deny PURGE
# ACL lists
# ACL - Allow Subnets - User defined (subnets)
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
acl subnets src X.X.X.X/24
# ACL - Unrestricted IPs - User defined (unrestricted)
acl unrestricted src X.X.X.X/32
# ACL - Remote fetched Blacklist (remoteblacklist)
# ACL - Block browser/user-agent - User defined (browser)
# ACL - SSL ports, default are configured in config.xml
# Configured SSL ports (if defaults are not listed, then they have been removed from the configuration!):
acl SSL_ports port 443 # https
# Default Safe ports are now defined in config.xml
# Configured Safe ports (if defaults are not listed, then they have been removed from the configuration!):
# ACL - Safe_ports
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
# ICAP SETTINGS
# disable icap
icap_enable off
# Pre-auth plugins
include /usr/local/etc/squid/pre-auth/*.conf
# Authentication Settings
# Configure Local User Authentication helper
auth_param basic program /usr/local/libexec/squid/basic_pam_auth -o
auth_param basic realm OPNsense proxy authentication
auth_param basic credentialsttl 2 hours
auth_param basic children 5
# ACL - Local Authorized Users - local_auth
acl local_auth proxy_auth REQUIRED
# ALLOW UNRESTRICTED
# ACL list (Allow) unrestricted
http_access allow unrestricted
# Google Suite Filter
# YouTube Filter
# Deny requests to certain unsafe ports
http_access deny !Safe_ports !unrestricted
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports !unrestricted
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
http_access deny to_localhost
# Auth plugins
include /usr/local/etc/squid/auth/*.conf
#
# Access Permission configuration:
#
# Deny request from unauthorized clients
http_access allow local_auth
#
# ACL - localnet - default these include ranges from selected interfaces (Allow local subnets)
http_access allow localnet
# ACL - localhost
http_access allow localhost
# ACL list (Allow) subnets
http_access allow subnets
# Deny all other access to this proxy
http_access deny all
# Post-auth plugins
include /usr/local/etc/squid/post-auth/*.conf
# Caching settings
cache_mem 4096 MB
cache_dir ufs /var/squid/cache 70000 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/squid/cache
#
# Add any of your own refresh_pattern entries above these.
#
# Linux package cache:
refresh_pattern pkg\.tar\.zst$ 0 20% 4320 refresh-ims
refresh_pattern d?rpm$ 0 20% 4320 refresh-ims
refresh_pattern deb$ 0 20% 4320 refresh-ims
refresh_pattern udeb$ 0 20% 4320 refresh-ims
refresh_pattern Packages\.bz2$ 0 20% 4320 refresh-ims
refresh_pattern Sources\.bz2$ 0 20% 4320 refresh-ims
refresh_pattern Release\.gpg$ 0 20% 4320 refresh-ims
refresh_pattern Release$ 0 20% 4320 refresh-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# Squid Options
pinger_enable off
# ignore source hosts from access.log
acl accesslog_ignore src X.X.X.X
access_log syslog:local4.info !accesslog_ignore
# Disable cache store log
cache_store_log none
# Suppress http version string (default=off)
httpd_suppress_version_string on
# URI handling with Whitespaces (default=strip)
uri_whitespace strip
# Define max download size
reply_body_max_size 300000000 KB
# Define max upload size
request_body_max_size 100000000 KB
delay_pools 1
delay_class 1 3
delay_access 1 allow all
# Define PerHost and Overall Bandwidth Trotteling
delay_parameters 1 125000000/125000000 -1/-1 62500000/125000000
# Disable squid logfile rotate to use system defaults
logfile_rotate 0
# Define visible hostname
visible_hostname proxy
# Define visible email
cache_mgr x@x.x
error_directory /usr/local/etc/squid/errors/en-us
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
SSO working for Squid excepted from VPN