No description
|
|
||
|---|---|---|
| alpine | ||
| debian | ||
| freebsd | ||
| README.md | ||
| variables | ||
Useful scripts for common tasks for VPSes
(!) No guarantee the scripts will work, run only if you're able to revert or on a clean system.
Requirements
- Tested on Debian 13, Alpine 3.21, FreeBSD 14.3
- Working internet
- Root permissions; scripts must be executed as root (sudo is fine)
- if virtualized, it must be Full virtualization (e.g. KVM) and NOT OS-level virtualization (e.g. container, OpenVZ, LXC)
Tutorial
- CLONE this repo
- Fill in
variables - Run a script or scripts
IMPORTANT: you must run this from the root (cloned repo) directory, that is./debian/debian-secure.shand as root
Scripts
-
tor-repo.sh- Adds the Tor repo. -
secure.sh:- Creates a user
- disallows root and password login
- creates a WireGuard profile
- restricts SSH to it
If OS-level virtualization, install
wireguard-gobeforehand
Workflow idea
Relevant for Debian
- Update the system and reboot
- Remove bloat like exim or cron
- Setup systemd-networkd and remove other network managers
- Get a random IPv6 (security through obscurity)
secure.sh- Install mosh, byobu
- Save the connection info somewhere