Commit 2da8ba22 authored by Jos Schellevis's avatar Jos Schellevis

Proxy service work in progress, added options

parent 6b88a1af
......@@ -9,6 +9,12 @@
<default>0</default>
<Required>Y</Required>
</enabled>
<icpPort type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>65535</MaximumValue>
<ValidationMessage>"ICP port needs to be an integer value between 1 and 65535"</ValidationMessage>
<Required>N</Required>
</icpPort>
<logging>
<enable>
<accessLog type="BooleanField">
......@@ -31,7 +37,6 @@
<forwardedForHandling type="OptionsField">
</forwardedForHandling>
<uriWhitespaceHandling type="OptionsField">
</uriWhitespaceHandling>
<useViaHeader type="BooleanField">
<default>1</default>
......
......@@ -178,6 +178,12 @@ maxheight: define max height of select box, default=170px to hold 5 items
'type':'checkbox',
'help':'Enable or disable the proxy service.'
],
['id': 'proxy.general.icpPort',
'label':'ICP port',
'type':'text',
'help':'The port number where Squid sends and receives ICP queries to
and from neighbor caches. Leave blank to disable (default). The standard UDP port for ICP is 3130.'
],
['id': 'proxy.general.logging.enable.accessLog',
'label':'Enable access logging',
'type':'checkbox',
......@@ -194,8 +200,8 @@ maxheight: define max height of select box, default=170px to hold 5 items
'label':'Use alternate DNS-servers',
'type':'select_multiple',
'style':'tokenize',
'help':'Type IPs of alternative DNS servers you like to use.',
'hint':'Type IP adresses, followed by Enter.',
'help':'Type IPs of alternative DNS servers you like to use. <div class="text-info"><b>TIP: </b>You can also paste a comma seperated list into this field.</div>',
'hint':'Type IP adresses, followed by Enter or comma.',
'allownew':'true',
'advanced':'true'
],
......
......@@ -140,3 +140,8 @@ via off
httpd_suppress_version_string on
{% endif %}
{% endif %}
{% if helpers.exists('OPNsense.proxy.general.icpPort') %}
{% if OPNsense.proxy.general.icpPort != '' %}
icp_port {{OPNsense.proxy.general.icpPort}}
{% 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