Commit 73a42ebe authored by Franco Fichtner's avatar Franco Fichtner

proxy: start intercept on IPv6 too

Template rule for transparent mode are not properly adapted,
but they are user-configurable so that's not a problem.

(cherry picked from commit af9fc279)
parent bf46ac0e
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
{% if helpers.exists('OPNsense.proxy.forward.transparentMode') and OPNsense.proxy.forward.transparentMode == '1' %} {% if helpers.exists('OPNsense.proxy.forward.transparentMode') and OPNsense.proxy.forward.transparentMode == '1' %}
# transparent mode, listen on localhost # transparent mode, listen on localhost
http_port 127.0.0.1:{{ OPNsense.proxy.forward.port }} intercept http_port 127.0.0.1:{{ OPNsense.proxy.forward.port }} intercept
http_port [::1]:{{ OPNsense.proxy.forward.port }} intercept
{% endif %} {% endif %}
# Setup listen configuration # Setup listen configuration
...@@ -32,6 +33,7 @@ http_access allow ftp ...@@ -32,6 +33,7 @@ http_access allow ftp
{% if helpers.exists('OPNsense.proxy.forward.ftpTransparentMode') and OPNsense.proxy.forward.ftpTransparentMode == '1' %} {% if helpers.exists('OPNsense.proxy.forward.ftpTransparentMode') and OPNsense.proxy.forward.ftpTransparentMode == '1' %}
# transparent mode, listen on localhost # transparent mode, listen on localhost
ftp_port 127.0.0.1:{{ OPNsense.proxy.forward.ftpPort }} intercept ftp_port 127.0.0.1:{{ OPNsense.proxy.forward.ftpPort }} intercept
ftp_port [::1]:{{ OPNsense.proxy.forward.ftpPort }} intercept
{% endif %} {% endif %}
# Setup ftp proxy # Setup ftp proxy
......
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