Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Configure iptables—a firewall tool—on an Arch Linux VPS—install with
pacman -S iptables
set rules:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT && iptables -A INPUT -j DROP
Save with
iptables-save > /etc/iptables/iptables.rules
enable:
systemctl enable iptables
On Vultr test with
ssh user@ip
—only port 22 works Ensures uptime—add MySQL (3306) and phpMyAdmin rules leaner than UFW for VPS hosting

Back to All Tips