SimonAlling / userscript-proxy

Browser extensions on any device
MIT License
71 stars 3 forks source link

Using Userscript Proxy via global Internet #11

Closed Futyn-Maker closed 3 years ago

Futyn-Maker commented 3 years ago

Hello!

I understand that it can be unsafe, but I'd like to use Userscript Proxy via external IP on my server. In other words, I don't want to connect my mobile phone to the same wi-fi network and use Userscripts anywhere.

Can I do it? Can I setup something like global proxy?

SimonAlling commented 3 years ago
⚠️ Highly, highly discouraged method You can always open a port. For example, if Userscript Proxy is running at 192.168.1.42:8080, then forward a WAN-facing TCP port of your choice (1337, 8080 or almost any other) to 192.168.1.42:8080 in your router. (The details depend on your router model.) Next, [look up your global IP address](https://ipecho.net/plain). Let’s say it’s 11.22.33.44; then you should be able to use 11.22.33.44:1337 (or whatever WAN-facing port you forwarded) as proxy on your phone. **But so can anyone else on the Internet!**

I’ve been looking into a solution with an authentication proxy (e.g. Squid) in front of Userscript Proxy, but I cannot present a complete solution at this moment, unfortunately.

My current everyday solution is an OpenVPN server running on my LAN, which I connect to from my mobile devices when not at home. It works pretty well; I just have to document it (#4) … ¯\_(ツ)_/¯

Futyn-Maker commented 3 years ago

Thanks!