Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
8a0a35e8
Commit
8a0a35e8
authored
Mar 01, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(proxy) stack remote acl's
parent
83627572
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+5
-7
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
8a0a35e8
...
@@ -128,7 +128,7 @@ acl blackList url_regex {{element|replace(".","\.")}}
...
@@ -128,7 +128,7 @@ acl blackList url_regex {{element|replace(".","\.")}}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists'
) %}
{%
for
blacklist
in
helpers
.
toList
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist'
) %}
{%
for
blacklist
in
helpers
.
toList
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist'
) %}
{%
if
blacklist
.
enabled
==
'1'
%}
{%
if
blacklist
.
enabled
==
'1'
%}
acl
remoteblacklist
dstdomain
"/usr/local/etc/squid/acl/{{blacklist.filename}}"
acl
remoteblacklist
_
{{
blacklist
.
filename
}}
dstdomain
"/usr/local/etc/squid/acl/{{blacklist.filename}}"
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
...
@@ -264,14 +264,12 @@ http_access deny blackList
...
@@ -264,14 +264,12 @@ http_access deny blackList
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists'
) %}
{%
for
blacklist
in
helpers
.
toList
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist'
)
if
blacklist
.
enabled
==
'1'
%}
{%
for
blacklist
in
helpers
.
toList
(
'OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist'
)
if
blacklist
.
enabled
==
'1'
%}
{%
if
loop
.
first
%}
# ACL list (Deny) remoteblacklist_{{blacklist.filename}}
# ACL list (Deny) remoteblacklist
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.enable'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
enable
==
'1'
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.enable'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
enable
==
'1'
%}
adaptation_access
response_mod
deny
remoteblacklist
adaptation_access
response_mod
deny
remoteblacklist_
{{
blacklist
.
filename
}}
adaptation_access
request_mod
deny
remoteblacklist
adaptation_access
request_mod
deny
remoteblacklist_
{{
blacklist
.
filename
}}
{%
endif
%}
http_access
deny
remoteblacklist
{%
endif
%}
{%
endif
%}
http_access
deny
remoteblacklist_
{{
blacklist
.
filename
}}
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment