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
6b88a1af
Commit
6b88a1af
authored
Apr 09, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proxy service work in progress, added more options
parent
60e9a521
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
Proxy.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
+13
-0
index.volt
src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt
+15
-2
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+12
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
View file @
6b88a1af
...
...
@@ -28,6 +28,19 @@
<default>
0
</default>
<Required>
Y
</Required>
</dnsV4First>
<forwardedForHandling
type=
"OptionsField"
>
</forwardedForHandling>
<uriWhitespaceHandling
type=
"OptionsField"
>
</uriWhitespaceHandling>
<useViaHeader
type=
"BooleanField"
>
<default>
1
</default>
<Required>
N
</Required>
</useViaHeader>
<suppressVersion
type=
"BooleanField"
>
<default>
0
</default>
<Required>
N
</Required>
</suppressVersion>
</general>
<forward>
<interfaces
type=
"CSVListField"
>
...
...
src/opnsense/mvc/app/views/OPNsense/Proxy/index.volt
View file @
6b88a1af
...
...
@@ -181,13 +181,13 @@ maxheight: define max height of select box, default=170px to hold 5 items
['id': 'proxy.general.logging.enable.accessLog',
'label':'Enable access logging',
'type':'checkbox',
'help':'Enable access logging
for squid
.',
'help':'Enable access logging.',
'advanced':'true'
],
['id': 'proxy.general.logging.enable.storeLog',
'label':'Enable store logging',
'type':'checkbox',
'help':'Enable
access logging for squid
.',
'help':'Enable
store logging
.',
'advanced':'true'
],
['id': 'proxy.general.alternateDNSservers',
...
...
@@ -208,6 +208,19 @@ maxheight: define max height of select box, default=170px to hold 5 items
connectivity is used (and tested). Hiding network problems
which would otherwise be detected and warned about.</div>',
'advanced':'true'
],
['id': 'proxy.general.useViaHeader',
'label':'Use Via header',
'type':'checkbox',
'help':'If set (default), Squid will include a Via header in requests and
replies as required by RFC2616.',
'advanced':'true'
],
['id': 'proxy.general.suppressVersion',
'label':'Suppress version string',
'type':'checkbox',
'help':'Suppress Squid version string info in HTTP headers and HTML error pages.',
'advanced':'true'
]}
],
['proxy-forward','Forward Proxy','subtabs': {
...
...
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
6b88a1af
...
...
@@ -128,3 +128,15 @@ cache_store_log none
dns_nameservers
{{
dns
}}
{%
endfor
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.useViaHeader'
) %}
{%
if
OPNsense
.
proxy
.
general
.
useViaHeader
==
'0'
%}
# Disable via Header
via
off
{%
endif
%}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.suppressVersion'
) %}
{%
if
OPNsense
.
proxy
.
general
.
suppressVersion
==
'1'
%}
# Suppres http version string (default=off)
httpd_suppress_version_string
on
{%
endif
%}
{%
endif
%}
\ No newline at end of file
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