Comment on Connection to VPS only via VPN or SSH

notepass@feddit.de ⁨1⁩ ⁨year⁩ ago

You can set up firewall rules that limit connections to certain ports. For example, you can disallow connections to everything but port 22 (which ssh runs on) to only allow access to the ssh server from outside. Same with VPN.

Read up on ufw (or iptables if you want to do it lower level and have a drink on hand).

source
Sort:hotnewtop