$ sudo apt-get install ufw $ sudo ufw default deny $ sudo ufw allow 3843
しかしenableでエラー
$ sudo ufw enable Command may disrupt existing ssh connections. Proceed with operation (y|n)? y ERROR: problem running ufw-init
DTIのVPSではOpenVZという仮想化ソフトウェアを使っていますが、ufwを有効にすると下記の修正をしないと動きませんでした。
Approximate patch to make ufw work under OpenVZ with kernel 2.6.32-042stab078.26
これで動いた。
$ sudo ufw status 状態: アクティブ To Action From -- ------ ---- Postfix ALLOW Anywhere 3843 ALLOW Anywhere