这里写自定义目录标题
一、概述
1、腾讯云Ubuntu Server 18.04 LTS默认配置的是ufw防火墙。相对于 iptables,ufw 使用起来非常方便,真正地简化了 iptables。
2、ufw,即简单防火墙(Uncomplicated FireWall)),从出现至今短短时间,就成了 Ubuntu 和 Debian 等系统上的默认防火墙。由于简单,对新手Linux操作者来说是一个福音。
3、本文仅探讨Linux上的ufw防火墙,包括更改防火墙的一些命令和一些见解。
二、ufw 常用命令
1、安装ufw。虽然ufw是Ubuntu等系统的默认防火墙,但是若是系统本来没有带ufw,或是系统有其它操作需要重新安装ufw,则可以使用下述命令:
sudo apt install ufw
2、我们可以在/etc/default/ufw路径下快速查看 ufw 配置,以及它的配置文件。
sudo vim /etc/default/ufw
其结果为:
# /etc/default/ufw
#
# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
# accepted). You will need to 'disable' and then 'enable' the firewall for
# the changes to take affect.
IPV6=yes
# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_INPUT_POLICY="DROP"
# Set the default o
Ubuntu18.04LTS中的ufw防火墙设置指南

本文介绍了ufw防火墙在UbuntuServer18.04LTS中的使用,包括ufw的安装、配置文件查看、启动命令,以及如何允许或禁止特定端口和IP的访问。ufw作为简单的防火墙工具,为Linux新手提供了便利。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



