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 ๐ŸŽ‰

Categories
Server

Setup your Linux Server

State: draft

Note: This shall serve as a collection of all relevant commands, so that one might save some time searching the world wide web.

USER and OS: Configure your own user and setup daily OS upgrades.

# Change root pw:
passwd
# add personal user 
adduser USERNAME
# add user to sudo group
adduser USERNAME sudo
# install unattended upgrades package...
sudo apt-get update
sudo apt-get install unattended-upgrades
# ... and enable
sudo dpkg-reconfigure --priority=low unattended-upgrades

FIREWALL: Install firewall and setup. You may want to change SSH port. Make sure to first allow ssh (so that you will not be excluded from your own server), allow the new port and once connected successfully, deny ssh.

Categories
Server

Strato Linux VPS (Linux-V10) and caprover – no happy end

TL;DR: caprover does NOT run on Strato Linux VServer (e.g. Linux V10). Think about nginx reverse-proxy, certbot and docker-compose instead.

The whole idea of running my own server was to install caprover and then be able to easliy create and push web applications. However, it did not work as intended…

This is a note to everybody that tries to install caprover, a self hosted PaaS (something like heroku) on a Linux VPS hosted on strato: It does not work.

The Strato VPS Linux servers, e.g. Linux V10, seem to be docker containers themselves (This might be the reason, why one can rent such a server at the low prize of 5 EUR/month). Caprover however would need to be installed on a non-dockerized host machine. Inside a docker container, the swarm and networking capabilities seem to be restricted.