Commit bec972f3 authored by Jos Schellevis's avatar Jos Schellevis

Proxy work in progress, small change for unsupported ftp proxy modes

parent ea72a72e
...@@ -26,14 +26,14 @@ http_port {{intf_item.subnet}}:{{ OPNsense.proxy.forward.port }} {%if OPNsense. ...@@ -26,14 +26,14 @@ http_port {{intf_item.subnet}}:{{ OPNsense.proxy.forward.port }} {%if OPNsense.
{% for interface in OPNsense.proxy.forward.ftpInterfaces.split(",") %} {% for interface in OPNsense.proxy.forward.ftpInterfaces.split(",") %}
{% for intf_key,intf_item in interfaces.iteritems() %} {% for intf_key,intf_item in interfaces.iteritems() %}
{% if intf_key == interface and intf_item.ipaddr != 'dhcp' %} {% if intf_key == interface and intf_item.ipaddr != 'dhcp' %}
ftp_port {{intf_item.ipaddr}}:{{ OPNsense.proxy.forward.ftpPort }} {%if OPNsense.proxy.forward.ftpTransparentMode == '1' %}tproxy{% else %}accel{% endif %} ftp-track-dirs protocol=HTTP ftp_port {{intf_item.ipaddr}}:{{ OPNsense.proxy.forward.ftpPort }} {%if OPNsense.proxy.forward.ftpTransparentMode == '1' %}tproxy{% else %}accel ftp-track-dirs protocol=HTTP{% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{# virtual ip's #} {# virtual ip's #}
{% if helpers.exists('virtualip') %} {% if helpers.exists('virtualip') %}
{% for intf_key,intf_item in virtualip.iteritems() %} {% for intf_key,intf_item in virtualip.iteritems() %}
{% if intf_item.interface == interface and intf_item.mode == 'ipalias' %} {% if intf_item.interface == interface and intf_item.mode == 'ipalias' %}
ftp_port {{intf_item.subnet}}:{{ OPNsense.proxy.forward.ftpPort }} {%if OPNsense.proxy.forward.ftpTransparentMode == '1' %}tproxy{% else %}accel{% endif %} ftp-track-dirs protocol=HTTP ftp_port {{intf_item.subnet}}:{{ OPNsense.proxy.forward.ftpPort }} {%if OPNsense.proxy.forward.ftpTransparentMode == '1' %}tproxy{% else %}accel ftp-track-dirs protocol=HTTP{% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
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