添加 'README.md'

This commit is contained in:
wzj 2022-11-14 12:58:19 +08:00
parent ea1c562f32
commit 9b0d90e500

28
README.md Normal file
View File

@ -0,0 +1,28 @@
# firewalld 简便小工具
## 安装命令
```bash
wget -O /usr/bin/fwd https://mirror.liuyan.wang/shell/fwd.sh && chmod +x /usr/bin/fwd
```
## 使用方法
```bash
$fwd -h
Usage:
fwd [options]
Options:
-a, --add open a tcp port #增加tcp端口
-au, --add-udp open a udp port #增加udp端口
-r, --remove close a tcp port #关闭tcp端口
-ru, --remove-udp close a udp port #关闭udp端口
-l, --list show opened ports #展示以开放列表
start, start firewalld #开启firewalld
stop, stop firewalld #关闭firewalld
status, see if started #查看firewalld装态
update, update this command #升级
-v, --version show version of local and remote #查看版本
-h, --help display this help and exit #查看帮助
```