Commit 6b88a1af authored by Jos Schellevis's avatar Jos Schellevis

Proxy service work in progress, added more options

parent 60e9a521
...@@ -28,6 +28,19 @@ ...@@ -28,6 +28,19 @@
<default>0</default> <default>0</default>
<Required>Y</Required> <Required>Y</Required>
</dnsV4First> </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> </general>
<forward> <forward>
<interfaces type="CSVListField"> <interfaces type="CSVListField">
......
...@@ -181,13 +181,13 @@ maxheight: define max height of select box, default=170px to hold 5 items ...@@ -181,13 +181,13 @@ maxheight: define max height of select box, default=170px to hold 5 items
['id': 'proxy.general.logging.enable.accessLog', ['id': 'proxy.general.logging.enable.accessLog',
'label':'Enable access logging', 'label':'Enable access logging',
'type':'checkbox', 'type':'checkbox',
'help':'Enable access logging for squid.', 'help':'Enable access logging.',
'advanced':'true' 'advanced':'true'
], ],
['id': 'proxy.general.logging.enable.storeLog', ['id': 'proxy.general.logging.enable.storeLog',
'label':'Enable store logging', 'label':'Enable store logging',
'type':'checkbox', 'type':'checkbox',
'help':'Enable access logging for squid.', 'help':'Enable store logging.',
'advanced':'true' 'advanced':'true'
], ],
['id': 'proxy.general.alternateDNSservers', ['id': 'proxy.general.alternateDNSservers',
...@@ -208,6 +208,19 @@ maxheight: define max height of select box, default=170px to hold 5 items ...@@ -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 connectivity is used (and tested). Hiding network problems
which would otherwise be detected and warned about.</div>', which would otherwise be detected and warned about.</div>',
'advanced':'true' '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': { ['proxy-forward','Forward Proxy','subtabs': {
......
...@@ -128,3 +128,15 @@ cache_store_log none ...@@ -128,3 +128,15 @@ cache_store_log none
dns_nameservers {{dns}} dns_nameservers {{dns}}
{% endfor %} {% endfor %}
{% endif %} {% 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment