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

Proxy service work in progress, added options

parent 6b88a1af
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<default>0</default> <default>0</default>
<Required>Y</Required> <Required>Y</Required>
</enabled> </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> <logging>
<enable> <enable>
<accessLog type="BooleanField"> <accessLog type="BooleanField">
...@@ -31,7 +37,6 @@ ...@@ -31,7 +37,6 @@
<forwardedForHandling type="OptionsField"> <forwardedForHandling type="OptionsField">
</forwardedForHandling> </forwardedForHandling>
<uriWhitespaceHandling type="OptionsField"> <uriWhitespaceHandling type="OptionsField">
</uriWhitespaceHandling> </uriWhitespaceHandling>
<useViaHeader type="BooleanField"> <useViaHeader type="BooleanField">
<default>1</default> <default>1</default>
......
...@@ -178,6 +178,12 @@ maxheight: define max height of select box, default=170px to hold 5 items ...@@ -178,6 +178,12 @@ maxheight: define max height of select box, default=170px to hold 5 items
'type':'checkbox', 'type':'checkbox',
'help':'Enable or disable the proxy service.' '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', ['id': 'proxy.general.logging.enable.accessLog',
'label':'Enable access logging', 'label':'Enable access logging',
'type':'checkbox', 'type':'checkbox',
...@@ -194,8 +200,8 @@ maxheight: define max height of select box, default=170px to hold 5 items ...@@ -194,8 +200,8 @@ maxheight: define max height of select box, default=170px to hold 5 items
'label':'Use alternate DNS-servers', 'label':'Use alternate DNS-servers',
'type':'select_multiple', 'type':'select_multiple',
'style':'tokenize', 'style':'tokenize',
'help':'Type IPs of alternative DNS servers you like to use.', '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.', 'hint':'Type IP adresses, followed by Enter or comma.',
'allownew':'true', 'allownew':'true',
'advanced':'true' 'advanced':'true'
], ],
......
...@@ -139,4 +139,9 @@ via off ...@@ -139,4 +139,9 @@ via off
# Suppres http version string (default=off) # Suppres http version string (default=off)
httpd_suppress_version_string on httpd_suppress_version_string on
{% endif %} {% endif %}
{% endif %}
{% if helpers.exists('OPNsense.proxy.general.icpPort') %}
{% if OPNsense.proxy.general.icpPort != '' %}
icp_port {{OPNsense.proxy.general.icpPort}}
{% endif %}
{% 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