plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[os-tor] - allow to specify outgoing interface

Open firefart opened this issue 3 years 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] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe. The os-tor plugin currently takes the default routes to the internet which is not always what we want. For example to connect to TOR via a separate VPN client connection already established on opnsense

Describe the solution you'd like

It would be nice to add an option to os-tor to allow to specify the outgoing interface. In my example I have an VPN interface and a WAN interface and want to force tor to use the VPN interface without fiddling with routes.

In torrc there are the OutboundBindAddress* options ( https://man.archlinux.org/man/tor.1.en ) which can be used. This would also mean there needs to be a hook to update the torrc file when a dynamic IP on a selected interface changes (as the option only allows ips, not interface names)

Describe alternatives you've considered

Additional context

firefart avatar Aug 02 '22 06:08 firefart