Skip to content

Commit

Permalink
security/tor: add VIPs to listening interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 20, 2017
1 parent 9c363e6 commit 463dd0b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions security/tor/src/opnsense/service/templates/OPNsense/Tor/torrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit 463dd0b

Please sign in to comment.