mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
security/tor: add VIPs to listening interfaces
PR: https://forum.opnsense.org/index.php?topic=6208.0
This commit is contained in:
parent
9c363e6ebe
commit
463dd0b21a
1 changed files with 13 additions and 0 deletions
|
|
@ -25,6 +25,19 @@ SOCKSPort {{ interface_ip }}:{{ OPNsense.tor.general.socks_listen_port|default('
|
|||
SOCKSPort [{{ interface_ip }}]:{{ OPNsense.tor.general.socks_listen_port|default('9050') }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('virtualip') %}
|
||||
{% for intf_item in helpers.toList('virtualip.vip') %}
|
||||
{% if intf_item.interface == listen_interface and intf_item.type == 'single' %}
|
||||
{% if intf_item.subnet.find(':') > -1 %}
|
||||
# {{ listen_interface }}: IPv6 VIP
|
||||
SOCKSPort [{{ intf_item.subnet }}]:{{ OPNsense.tor.general.socks_listen_port|default('9050') }}
|
||||
{% else %}
|
||||
# {{ listen_interface }}: IPv4 VIP
|
||||
SOCKSPort {{ intf_item.subnet }}:{{ OPNsense.tor.general.socks_listen_port|default('9050') }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue