16
Web Proxy Filtering and Caching / Re: Squid 6.6
« on: January 03, 2024, 11:56:43 pm »
I'd expect Squid to be a plugin in 24.1
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
# grep root.hints /usr/local/etc/inc/plugins.inc.d/unbound.inc
root-hints: /var/unbound/root.hints
If I am incorrect please point me to resources.
function auth_get_shells($uid = 0)
{
$shells = array('' => '/usr/sbin/nologin');
if ($uid == 0) {
$shells = array('' => '/usr/local/sbin/opnsense-shell');
}
$etc_shells = @file_get_contents('/etc/shells');
if (!empty($etc_shells)) {
$etc_shells = explode("\n", $etc_shells);
foreach ($etc_shells as $shell) {
$shell = trim($shell);
if (
!empty($shell) && strpos($shell, '#') !== 0 &&
strpos($shell, '/usr/local/sbin/opnsense-') !== 0
) {
$shells[$shell] = $shell;
}
}
}
return $shells;
}
Also, DNS does not use TCP (DoT uses TCP, but uses port 853 not 53). You can simplify and clean up the rules by applying it to UDP only or adjusting to your use case.