LoginSignup
5
7

More than 5 years have passed since last update.

CentOSでufwを使う

Posted at

pythonのインストール

$ su -
# cd /usr/local/src
# wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
# tar zxvf Python-2.7.1.tgz 
# cd Python-2.7.1
# vi Modules/Setup (zlib zlibmodule.c -のコメントアウトを解除する)
# ./configure --with-threads --enable-shared
# make
# make install
# echo /usr/local/lib | tee /etc/ld.so.conf.d/python2.7.conf
# /sbin/ldconfig

ufwをインストール

$ su -
# cd /usr/local/src
# wget https://launchpad.net/ufw/0.33/0.33/+download/ufw-0.33.tar.gz
# tar zxvf ufw-0.33.tar.gz
# cd ufw-0.33
# /usr/local/bin/python ./setup.py install
# chmod -R g-w /etc/ufw /lib/ufw /etc/default/ufw /usr/local/sbin/ufw

ufwの使い方

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7