mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(CP) fix transparant mode, closes https://github.com/opnsense/core/issues/1391
This commit is contained in:
parent
367d2e201b
commit
8138784980
@ -5,10 +5,12 @@
|
||||
{% for cp_zone in cp_interface_list %}
|
||||
{% if cp_zone.obj.transparentHTTPProxy|default('0') == '1' %}
|
||||
# HTTP redirect {{ cp_zone.zone }}
|
||||
add 60005 skipto 65533 tcp from me to any dst-port 80 via {{ cp_zone.if }}
|
||||
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.port }} tcp from any to any dst-port 80 via {{ cp_zone.if }}
|
||||
{% endif %}
|
||||
{% if cp_zone.obj.transparentHTTPSProxy|default('0') == '1' %}
|
||||
# HTTPS redirect {{ cp_zone.zone }}
|
||||
add 60005 skipto 65533 tcp from me to any dst-port 443 via {{ cp_zone.if }}
|
||||
add 65532 fwd 127.0.0.1,{{ OPNsense.proxy.forward.sslbumpport }} tcp from any to any dst-port 443 via {{ cp_zone.if }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user