Can someone explain to me how can I get a proxy server setup? I am on Linux and I don't really trust any free VPNs

Can someone explain to me how can I get a proxy server setup? I am on Linux and I don’t really trust any free VPNs

You have to make the choice of static IP address from your ISP (who often charge for this if they even offer it at all) or a DDNS service like No-IP. You then need to open ports to your services.

you say that you don’t trust free VPNs, which is fine, but instead, you feel happy broadcasting to the planet “Here’s my server, knock yourselves out attacking it!” because they absolutely will. When I had a little WordPress site running on a a Raspberry Pi, I would get daily attacks from Chinese IP addresses looking for insecurities. Many people report that most of the attacks now come from eastern Europe.

I use the free tier Twingate because it’s really easy to set up in docker and meets my needs (I wanted a zero trust network) others use Tailscale (They were looking at a zero trust solution but I haven’t used it myself). So, it depends on your specific needs and how confident you are in your own network security skills over those that specialise in the subject.

ssh -D 127.0.0.1:1080 -qCNf user@host

If you’re asking specifically for proxy, squid or tinyproxy are proxy servers software that you can install. Depending on your distro… google how to install squid on Ubuntu or whatever

You really need to provide words to go with that.

man ssh

-D [bind_address:]port

Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server. Only root can forward privileged ports. Dynamic port forwardings can also be specified in the configuration file.