drmike
100% Tier-1 Gogent
For long I've been running Debian on VPS instance wide open or with a stack of iptables commands. Been getting smacked by some bad traffic lately and after debugging all that, thought it was time for something a bit tidier and easier to deal with. Yes iptables rocks, but it's a long learning curve and prone to massive screwups due to admin error.
So let's install ufw:
So let's install ufw:
Code:
Install ufw:
sudo apt-get install ufw
(ufw will NOT start post installation, so as to not lock you out)
Open ports 22 and 80 (add others if needed)
sudo ufw allow 22
sudo ufw allow 80
Start ufw:
sudo ufw enable
Turn on logging (will put entries in /var/log/syslog):
sudo ufw logging on
Get status of ufw:
sudo ufw status verbose
Disable ufw:
sudo ufw disable
Block a malicious IP with ufw:
sudo ufw deny ip
Last edited by a moderator: