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
88c07be2
Commit
88c07be2
authored
Apr 24, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proxy work in progress, change mathinh on white and blacklists
parent
7773bb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+9
-8
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
88c07be2
...
...
@@ -77,7 +77,7 @@ acl bannedHosts src {{ip}}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.whiteList'
) %}
# ALC - Whitelist - User defined (whiteList)
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
whiteList
.
split
(
","
) %}
{%
if
'^'
or
'\\'
or
'$'
or
'['
in
element
%}
{%
if
(
'^'
or
'\\'
or
'$'
or
'['
)
in
element
%}
acl
whiteList
url_regex
{{
element
}}
{%
else
%}
acl
dstdomain
{{
element
}}
...
...
@@ -88,7 +88,7 @@ acl dstdomain {{element}}
# ALC - Blacklist - User defined (blackList)
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
blackList
.
split
(
","
) %}
{%
if
'^'
or
'\\'
or
'$'
or
'['
in
element
%}
{%
if
(
'^'
or
'\\'
or
'$'
or
'['
)
in
element
%}
acl
url_regex
{{
element
}}
{%
else
%}
acl
blackList
dstdomain
{{
element
}}
...
...
@@ -150,6 +150,13 @@ acl local_auth proxy_auth REQUIRED
# ACL list (Allow) unrestricted
http_access
allow
unrestricted
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.whiteList'
) %}
# ACL list (Allow) whitelist
http_access
allow
whiteList
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.blackList'
) %}
#
...
...
@@ -187,12 +194,6 @@ http_access deny manager
# one who can access services on "localhost" is a local user
http_access
deny
to_localhost
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.whiteList'
) %}
# ACL list (Allow) whitelist
http_access
allow
whiteList
{%
endif
%}
#
# Access Permission configuration:
#
...
...
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