INSTALLING UFW (UNCOMPLICATED FIREWALL) IN DEBIAN

To install UFW in Debian 5.0 (Lenny) there are a couple gotchas that you will hit along the way.

  1. UFW requires Python 2.5 or greater.
  2. UFW requires make
  3. UFW does NOT automatically start at boot even though it says it does.

Here are the commands I ran on a clean install (as root).


  1. Update your package list: aptitude update
  2. Upgrade your distribution: aptitude safe-upgrade
  3. Install Python: aptitude install python
  4. Install build utils: aptitude install build-essential
  5. Move to a temp location: cd /tmp
  6. Get the latest from UFW: wget http://launchpad.net/ufw/0.29/0.29.3/+download/ufw-0.29.3.tar.gz
  7. Extract the source: tar xvf ufw-0.29.3.tar.gz
  8. Go into the source: cd ufw-0.29.3
  9. Install UFW: python setup.py install
  10. Configure UFW to boot with tips from here: ln -fs /lib/ufw/ufw-init /etc/init.d/ufw
  11. Configure rc.defaults: update-rc.d ufw defaults
  12. Enable UFW: ufw enable

NOTE if you do NOT have make installed you will get a “No such file or directory” error. This actually took me a little while (and digging in setup.py) to figure out.

TAGGED AS: DEBIANFIREWALLPRO-TIPUBER-GEEKUFW



ugw 如果你不能用wget,也可以到这里下载  https://launchpad.net/ufw/+download

转载于:https://my.oschina.net/u/2450896/blog/613312

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值