plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[os-tor] tor is not able to listen on tailscale interface

Open teklabania opened this issue 10 months ago • 0 comments

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

  • [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
  • [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
  • [x] The title contains the plugin to which this issue belongs

Describe the bug When tailscale interface is set up under: SERVICES: TOR: CONFIGURATION: Listen Interfaces, SOCKSPort for the interface is not added to /usr/local/etc/tor/torrc and no tor service is listening on the interface.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce Steps to reproduce the behavior:

  1. Go to SERVICES: TOR: CONFIGURATION
  2. Choose tailscale (for example TS1) interface under Listen Interfaces
  3. Click Apply
  4. Execute sockstat -4n | rg tor - the service is not running for TS1
  5. Execute cat /usr/local/etc/tor/torrc - there's no entry for TS1 itnerface
  6. Edit /usr/local/etc/tor/torrc and add SOCKSPort TS1_IP:9050 manually, reload tor service, the service is listening correctly on TS1 IP address

Expected behavior Tor service is listening correctly on TS1 IP address.

Screenshots N/A

Relevant log files N/A

Additional context N/A

Environment OPNsense 24.1.4 os-tor 1.10 AMD Ryzen 7 5700G with Radeon Graphics (4 cores, 4 threads)

teklabania avatar Apr 04 '24 11:04 teklabania