I am trying to setup UFW on a 12.04 server.
SSH works great with UFW off.
root@ugvps:~# ufw enable Firewall is active and enabled on system startup root@ugvps:~# ufw status Status: active To Action From -- ------ ---- 22 ALLOW Anywhere
The server now refuses all connections to 22 and the following appears in the log
Jul 8 15:12:49 ugvps kernel: [445929.928075] [UFW BLOCK] IN=venet0 OUT= MAC= SRC=18.104.22.168 DST=MY.SERV.ERI.Pxx LEN=48 TOS=0x00 PREC=0x00 TTL=118 ID=14040 DF PROTO=TCP SPT=48965 DPT=22 WINDOW=8192 RES=0x00 SYN URGP=0
What have I done wrong? Thanks
Edit: This is running inside an OpenVZ container if that matters. I've followed this guide to get ufw running in the first place