I use *.home.mydomain for publicly-accessible IPs (IPv6 addresses plus anything that I’ve port forwarded so it’s accessible externally) and *.int.mydomain for internal IPv4 addresses.
I use *.home.mydomain for publicly-accessible IPs (IPv6 addresses plus anything that I’ve port forwarded so it’s accessible externally) and *.int.mydomain for internal IPv4 addresses.
Does your provider not offer IPv6? That’s usually the best way to avoid all NAT, including CGNAT.
$5/m is pretty expensive for a VPS if you’re just using it for Wireguard. A $15/year 2 GB RAM / 20-ish GB SSD VPS would be totally fine for that use case.
Black Friday is coming up… The best time of year for VPS deals. Even without Black Friday deals, providers like GreenCloudVPS (their “Budget KVM” packages) and RackNerd have good deals.
Are there screenshots available anywhere?
AirVPN. They let you port forward up to 20 ports, which is useful for various use cases (not just file sharing). If you want to seed torrents, port forwarding is an essential feature.
Anything that you absolutely must do as root can be done using sudo -i
which will give you a root shell.
Nice work!
Some small pieces of feedback:
sudo
will be installed automaticallyAllowGroups
, rather than allowing individual users via AllowUsers
. Note that once you disable PasswordAuthentication
, the only users that can SSH in are users that have keys in authorized_keys
, so you don’t really need to use AllowUsers
or AllowGroups
.
Note that GeoIP is unreliable so you may accidentally block some IPs that aren’t Chinese. Even whois is not 100% reliable given how often IPv4 addresses are traded these days.
If some Chinese-made technology really phones home, it’s more likely that they’d communicate with a US-based server that would then communicate to servers in China behind-the-scenes.