When trying to setup & configure ufw, I ran into a couple errors. Below are the steps I have taken up to where I am now.
First, I installed ufw.
Then, I created a couple rules
sudo apt-get install ufw
Next, I enabled ufw, received and accepted the message following the command.
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow "custom ssh port"
sudo deny 22
I then received the following error immediately after proceeding with the above operation.
sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)?
After doing some digging around on the net, I found that disabling IPV6 would resolve this problem, so I edited '/etc/default/ufw' to make the following change.
ERROR: problem running ufw-init
Returning to my terminal, I disabled ufw, rebooted my VPS, then re-enabled it again. Same ssh connection warning as before of course, and also received the same error, so I ran the following command, per another forums post.
That command offered the following error, which is where I am now.
sudo /lib/ufw/ufw-init start
Not looking for answers, but some direction. I'm running an up-to-date 12.04 LTS on an OpenVZ VPS.
Skip starting firewall: ufw (not enabled)