redhat防火墙管理
2024-09-03 18:53:09
systemctl status firewalld
systemctl stop firewalld
systemctl start firewalld
systemctl enable firewalld
systemctl disable firewalld
查看当前iptables规则
iptables –L –n
添加指定端口到防火墙中
iptables -I INPUT -p udp --dport 161 -j ACCEPT
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
查看规则序号
iptables -L -n --line-number
删除INPUT规则
iptables -D INPUT 编号
其他命令:
1.查看端口占用
lsof -i:端口号
2.修改ip
ifconfig enp2s0f0 10.0.96.85
ifconfig enp2s0f0 10.0.96.87
最新文章
- JSONP浅析
- OpenJudge计算概论-短信计费
- Python print语句
- why app_start start
- hdu 5626 Clarke and points
- SQL Server 查看表定义的 2 种方法
- Core Animation中的基础动画
- RabbitMQ入门-消息派发那些事儿
- MySQL的常见存储引擎介绍与参数设置调优
- C语言学习及应用笔记之四:C语言volatile关键字及其使用
- C# Note34: 异常机制相关小点
- learning makefile manner of working
- silverlight学习之页面传值篇
- node之post提交上传
- django页面导出excel
- [转] Fragment——startActivityForResult后onActivityResult无反应之问题总结
- 自己在UWP程序上调用usb转串口的路程
- 原生js实现ajax方法
- AC日记——【清华集训2014】奇数国 uoj 38
- javascript switch continue break 执行语句