VPN Proxy Wireguard – Creating a SOCKS5 Proxy from a Wireguard VPN on Client

PROXYvpnwireguard

I use ssh tunnel currently with Firefox and setup socks5 on it the point is that if the proxy is off and if there is problem with server then nothing loads,that's why I want to use socks proxy with wireguard.So when the wireguard is off and not connected the Firefox stops working as well. This is what I've found.

https://github.com/moparisthebest/wireguard-proxy

Since I'm newbie I don't know if this is what I'm looking for or not and how to use it.As my last plan I think a nasty work around could work(haven't tried yet though). To ssh myself over myself with -D tag so I can tunnel it just like I used to but this time instead of tunneling the server I can tunnel myself to put it on socks proxy.(I rather not use this nasty approach though)

Best Answer

Well since nobody is answering first of all tunneling through myself totally worked as I excepted it created a socks proxy on my localhost and wireguard was on socks proxy then usable,then I went for a better way used dante server to do this first tried to setup the proxy on the server so I could access it via ip.com:1080 but unfortunately that didn't work and I think it was because all my important ports were already in use because my server has cpanel on it, so I installed dante server on my local machine and proxied the wireguard interface through it so again I have it on my localhost now but I don't open a stupid ssh connection no more just a bit of supervisor work to make it automatically work,when wireguard goes on now the dante server will go on in a few seconds at most so it's totally automatic now thanks to dante and supervisor and everything is great now.

I didn't expect to get no answer here, becuase I'm a newbie here and I didn't expect at the end I answer my own question.

Related Topic