Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Ubuntu server 8.04 防火墙使用指南 (英文)

Create a tool for host-based iptables firewall configuration. This tool should provide an easy to use interface to the user, as well as support package integration and dynamic-detection of open ports.
Install UFW in Ubuntu
Currently this firewall package is available in Ubuntu 8.04
sudo apt-get install ufw
This will complete the installation
Turn firewall on and off (’disable’ is default ACCEPT)
# ufw enable|disable
Toggle logging
# ufw logging on|off
Set the default policy (ie “mostly open” vs “mostly closed”)
# ufw default allow|deny
Accept or drop incoming packets to (can see what services are available with ’status’ (see below)). can be specified via service name in /etc/services, ‘protocol:port’, or via package meta-data. ‘allow’ adds service entry to /etc/ufw/maps and ‘deny’ removes service entry from /etc/ufw/maps. Basic syntax:
# ufw allow|deny [service]
Display status of firewall and ports in the listening state, referencing /var/lib/ufw/maps. Numbers in parenthesis are not displayed to user
# ufw status

UFW Examples

Allow port 53
$ sudo ufw allow 53
Delete Allow port 53
$ sudo ufw delete allow 53
Allow port 80
$ sudo ufw allow 80/tcp
Delete Allow port 80
$ sudo ufw delete allow 80/tcp
Allow port smtp
$ sudo ufw allow smtp
Delete Allow port smtp
$ sudo ufw delete allow smtp
Allow fro Particular IP
$ sudo ufw allow from 192.168.254.254
Delete the above rule
$ sudo ufw delete allow from 192.168.254.254下周计算机病毒预报Linux系统未受影响[注意]线上游戏窃取者变种病毒偷取网络游戏密码相关资讯      Ubuntu  Ubuntu防火墙  Ubuntu Server 8.04 
  • 如果没有Ubuntu,我们将去哪里?  (02月04日)
  • Libra—扁平化风格Ubuntu Unity主  (11/30/2014 08:21:04)
  • Ubuntu将消失 有人欢喜有人愁  (10/18/2013 11:43:45)
  • 桌面/移动端 Ubuntu 将获重大 UI   (09/29/2015 11:48:18)
  • Debian/Ubuntu系统中安装和配置UFW  (01/20/2014 11:01:24)
  • 一盘棋:Ubuntu明明不赚钱为什么还  (08/19/2013 16:59:50)
本文评论 查看全部评论 (0)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任