this post was submitted on 29 Aug 2023
9 points (100.0% liked)

Linux

48193 readers
1450 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a residential proxy located in the U.S. The problem is I can only use these on browsers supporting proxy.

What I want is to setup the proxy on my VPS and have my phone connect to it using wireguard.

Is this possible?

top 3 comments
sorted by: hot top controversial new old

This is not possible. A socks proxy forwards tcp connections over another TCP connection. A wireguard vpn sends encrypted generic IP packets over udp. A socks proxy can't understand the types of things wireguard sends.

However, you could just install wireguard on both your vps and your phone, and you probably wouldn't even need the proxy. If your VPS is hosted by a big public cloud provider, be aware that many sites restrict incoming traffic from known up ranges because public cloud vms often used by spammers.

[–] oldfart@lemm.ee 2 points 1 year ago* (last edited 1 year ago)

Iptables has support for forwarding network traffic via a proxy, the keyword is "tproxy".

I don't think you can use socks5 directly, but you can translate tproxy to socks5 by installing squid listening on localhost for tproxy connections and setting the socks5 as an upstream proxy.

If it reads like a bunch of obsolete tech, it's because it is, but it gets the job done.

[–] chayleaf@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

You can do it via any of the tun2socks implementations. Maybe this can achieve what you want (it's an app with a hardcoded leaf config, you will have to compile it yourself)

If you're fine with proprietary code, this should be enough.