2022-11-14 12:58:19 +08:00
2022-11-14 12:36:17 +08:00
2022-11-14 12:58:19 +08:00

firewalld 简便小工具

安装命令

wget -O /usr/bin/fwd https://mirror.liuyan.wang/shell/fwd.sh && chmod +x /usr/bin/fwd

使用方法

$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 #查看帮助

Description
基于firewalld功能,替代firewalld自带繁琐的命令命令
Readme 21 KiB
Languages
Shell 100%