OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: DavidGA on May 17, 2023, 05:23:50 AM

Title: Use a SOCKS server as an interface or gateway?
Post by: DavidGA on May 17, 2023, 05:23:50 AM
If I have access to a SOCKS proxy, is there any way to make this proxy appear as an interface or gateway on my opnsense router, so that I can create rules to direct traffic to it?
Title: Re: Use a SOCKS server as an interface or gateway?
Post by: zan on May 17, 2023, 09:22:21 AM
SOCKS proxy is Layer 5(application), you need a Layer 3 tunnel that uses SOCKS protocol to route all traffic.
OPNsense does not have such tunnel.
There are some SOCKS tunnel programs able to create tun interface (eg: tun2sock, ss-redir etc) that you might be able to install and run, but you won't be able to use OPNsense to manage.
Unless you are willing to do everything manually, I'd suggest to forget about it.

Edit: I just checked os-shadowsocks plugin, sadly it only has ss-local and ss-server, no ss-redir.
Title: Re: Use a SOCKS server as an interface or gateway?
Post by: DavidGA on May 18, 2023, 09:27:27 PM
Thanks for your help.