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
731ae4cb
Commit
731ae4cb
authored
Jun 30, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(proxy) small changes to regex handling for black and whitelists
parent
bdef8691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+4
-4
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
731ae4cb
...
@@ -96,10 +96,10 @@ acl bannedHosts src {{ip}}
...
@@ -96,10 +96,10 @@ acl bannedHosts src {{ip}}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.whiteList'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.whiteList'
) %}
# ALC - Whitelist - User defined (whiteList)
# ALC - Whitelist - User defined (whiteList)
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
whiteList
.
split
(
","
) %}
{%
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
}}
acl
whiteList
url_regex
{{
element
}}
{%
else
%}
{%
else
%}
acl
whiteList
url_regex
.+
{{
element
|
replace
(
"."
,
"\."
)}}
acl
whiteList
url_regex
{{
element
|
replace
(
"."
,
"\."
)}}
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
...
@@ -107,10 +107,10 @@ acl whiteList url_regex .+{{element|replace(".","\.")}}
...
@@ -107,10 +107,10 @@ acl whiteList url_regex .+{{element|replace(".","\.")}}
# ALC - Blacklist - User defined (blackList)
# ALC - Blacklist - User defined (blackList)
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
blackList
.
split
(
","
) %}
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
blackList
.
split
(
","
) %}
{%
if
(
'^'
or
'\
\
'
or
'$'
or
'['
)
in
element
%}
{%
if
(
'^'
or
'\'
or
'$'
or
'['
)
in
element
%}
acl
blackList
url_regex
{{
element
}}
acl
blackList
url_regex
{{
element
}}
{%
else
%}
{%
else
%}
acl
blackList
url_regex
.+
{{
element
|
replace
(
"."
,
"\."
)}}
acl
blackList
url_regex
{{
element
|
replace
(
"."
,
"\."
)}}
{%
endif
%}
{%
endif
%}
{%
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