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).
TexMexBazooka@lemm.ee 1 year ago
iptables!
notepass@feddit.de 1 year ago
ufw makes it way nicer to use tho. I only use iptables as I have a configuration script I wrote way back in the day.
TexMexBazooka@lemm.ee 1 year ago
Yeah UFW is the way to go, but when you run into an embedded Linux device that only runs iptables and can only be accessed via ssh?
Well…. Keep that drink handy
notepass@feddit.de 1 year ago
Yes, but how often does that happen to the average person?