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
ac299cb9
Commit
ac299cb9
authored
Mar 01, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(proxy) icap, add some spacing
https://github.com/opnsense/core/pull/796
(cherry picked from commit
298257da
)
parent
a087373e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+19
-19
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
ac299cb9
...
...
@@ -170,44 +170,44 @@ acl CONNECT method CONNECT
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.enable'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
enable
==
'1'
%}
# enable icap
icap_enable
on
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.OptionsTTL'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.OptionsTTL'
) %}
icap_default_options_ttl
{{
OPNsense
.
proxy
.
forward
.
icap
.
OptionsTTL
}}
{%
endif
%}
{%
endif
%}
# send user information to the icap server
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.SendClientIP'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
SendClientIP
==
'1'
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.SendClientIP'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
SendClientIP
==
'1'
%}
adaptation_send_client_ip
on
{%
else
%}
{%
else
%}
adaptation_send_client_ip
off
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.SendUsername'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
SendUsername
==
'1'
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.SendUsername'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
SendUsername
==
'1'
%}
adaptation_send_username
on
{%
else
%}
{%
else
%}
adaptation_send_username
off
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.EncodeUsername'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
EncodeUsername
==
'1'
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.EncodeUsername'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
EncodeUsername
==
'1'
%}
icap_client_username_encode
on
{%
else
%}
{%
else
%}
icap_client_username_encode
off
{%
endif
%}
{%
endif
%}
# preview
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.EnablePreview'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
EnablePreview
==
'1'
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.EnablePreview'
)
and
OPNsense
.
proxy
.
forward
.
icap
.
EnablePreview
==
'1'
%}
icap_preview_enable
on
{%
else
%}
{%
else
%}
icap_preview_enable
off
{%
endif
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.PreviewSize'
) %}
icap_preview_size
{{
OPNsense
.
proxy
.
forward
.
icap
.
PreviewSize
}}
{%
endif
%}
{%
endif
%}
# add the servers
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.ResponseURL'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.ResponseURL'
) %}
icap_service
response_mod
respmod_precache
{{
OPNsense
.
proxy
.
forward
.
icap
.
ResponseURL
}}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.RequestURL'
) %}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.forward.icap.RequestURL'
) %}
icap_service
request_mod
reqmod_precache
{{
OPNsense
.
proxy
.
forward
.
icap
.
RequestURL
}}
{%
endif
%}
{%
endif
%}
{%
else
%}
# disable icap
...
...
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