OPNsense Forum

English Forums => General Discussion => Topic started by: revnelson on November 08, 2019, 02:11:09 pm

Title: How can I send traffic from an Alias to a SOCKS client?
Post by: revnelson on November 08, 2019, 02:11:09 pm
I have a ShadowsocksR client running on my opnsense box. From the shell, I can see that it's working:

Code: [Select]
root@OPNsense:~ # curl --socks5 localhost:1080 ip.sb
101.202.101.222
root@OPNsense:~ # curl ip.sb
202.44.22.103

I've changed the IPs, but they are what is expected.

So I know this service is working and ready to receive SOCKS5 traffic.

How can I send the traffic from an Alias (group of networks) to this service? I don't know if this is a gateway, tunnel, proxy, etc.

Googling forever has pointed me down roads that speak of Dante, Redsocks, and all manner of other things.

To be clear, I don't need to send this traffic out via SOCKS5 anywhere. I already have a service configured and waiting for SOCKS5 traffic. I just need to bundle all that traffic together and make sure the response goes back to the right client when it returns.

I don't mind needing to use the CLI to set another service up, but I would need some help with what I should be looking for. Also, I would need some help with firewall rules and NAT rules to make sure the traffic on an Alias that would otherwise go out the main gateway is redirected to 127.0.0.1:1080 as SOCKS5 traffic.