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
77919c0c
Commit
77919c0c
authored
Apr 24, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proxy work in progress, add extra mimetype block on request
parent
a89dc172
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+3
-1
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
77919c0c
...
@@ -107,6 +107,7 @@ acl blockuseragents browser {{element}}
...
@@ -107,6 +107,7 @@ acl blockuseragents browser {{element}}
# ALC - Block MIME types - User defined (mimetype)
# ALC - Block MIME types - User defined (mimetype)
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
mimeType
.
split
(
","
) %}
{%
for
element
in
OPNsense
.
proxy
.
forward
.
acl
.
mimeType
.
split
(
","
) %}
acl
blockmimetypes
rep_mime_type
{{
element
}}
acl
blockmimetypes
rep_mime_type
{{
element
}}
acl
blockmimetypes_requests
req_mime_type
{{
element
}}
{%
endfor
%}
{%
endfor
%}
{%
endif
%}
{%
endif
%}
...
@@ -172,7 +173,8 @@ http_access deny blockuseragents
...
@@ -172,7 +173,8 @@ http_access deny blockuseragents
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.mimeType'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.acl.mimeType'
) %}
# ACL list (Deny) blockmimetypes
# ACL list (Deny) blockmimetypes
http_access
deny
blockmimetypes
http_reply_access
deny
blockmimetypes
http_access
deny
blockmimetypes_requests
{%
endif
%}
{%
endif
%}
# Deny requests to certain unsafe ports
# Deny requests to certain unsafe ports
...
...
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