Categories
Server

draft: socks5 proxy on linux server vps

socks5 proxy on your vps let’s you route traffic from your pc, over the server. This can be useful, for example, if you want to use some services that are only available in one country, but you’re in another. You don’t need to get some fancy VPN service, just use a socks5 proxy.

Even better, by using a firefox extension like FoxyProxy, you can enable the proxy only on select pages, like ARD, ZDF, SRF, ORF or Amazon Prime.

socks5 proxy on vps

Use docker compose to manage your services running on your server

Configure a username and a password. I do this, so that I avoid other people using my proxy. Since A LOT of port scanning is happening on an internet server, I’m assuming, some might find, that under a specific port, I’m running a socks5 proxy. If it weren’t protected, everybody could use my proxy and route traffic through it. Not what I want.

Configure Firewall

FoxyProxy

Categories
Server

Configure proxy for PS4 to use socks5

PS4 cannot use a socks5 proxy. See a couple of sources.

However, you can create a local proxy, that in turn tunnels the traffic then to your socks5 proxy. Now you can use the desired app (looking at you, amazon) on the ps4.

Use gost: (go simple tunnel)

vi gost-service.sh

>>> content
#!/bin/bash

gost -L :8888 -F socks5://username:password@ip-address:port
>>>

#enable firewall?! sudo?
ufw allow 8888
ufw reload

Test the tunnel

./gost-service
# you should see output, or working tunnel

# try with this (ifconfig.me returns the ip it sees)
curl ifconfig.me
# now with proxy
curl -x localhost:8888 ifconfig.me
# best, also try it from another pc, so you can check firewall
curl -x yourlocalserver:8888 ifconfig.me

Now you’re basically ready, to configure the PS4, or any other client.

However, to make it more persistent, let’s create a service and start. Use systemctl to create the service.

sudo vi /lib/systemd/system/gost.service

>>> content
[Unit]
Description=
After=network.target

[Service]
Type=simple
ExecStart=/path/to/file.sh

[Install]
WantedBy=multi-user.target

Start the service

sudo systemctl enable gost.service
sudo systemctl start gost.service

Configure PS4

Settings -> Network -> WiFi/Cable? -> Manual -> Select, all default until proxy: Use Proxy -> configure, host and port

Done ๐ŸŽ‰