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

最新文章

  1. JSONP浅析
  2. OpenJudge计算概论-短信计费
  3. Python print语句
  4. why app_start start
  5. hdu 5626 Clarke and points
  6. SQL Server 查看表定义的 2 种方法
  7. Core Animation中的基础动画
  8. RabbitMQ入门-消息派发那些事儿
  9. MySQL的常见存储引擎介绍与参数设置调优
  10. C语言学习及应用笔记之四:C语言volatile关键字及其使用
  11. C# Note34: 异常机制相关小点
  12. learning makefile manner of working
  13. silverlight学习之页面传值篇
  14. node之post提交上传
  15. django页面导出excel
  16. [转] Fragment——startActivityForResult后onActivityResult无反应之问题总结
  17. 自己在UWP程序上调用usb转串口的路程
  18. 原生js实现ajax方法
  19. AC日记——【清华集训2014】奇数国 uoj 38
  20. javascript switch continue break 执行语句

热门文章

  1. 【转】 url中文乱码问题
  2. 播放WAV文件和系统提示音
  3. SVN工具使用总结
  4. Qgis里的查询过滤
  5. JAVA Collections常用方法
  6. cmd进入指定的文件夹
  7. HDU 1027 Ignatius and the Princess II(求第m个全排列)
  8. 关于void*类型的用法(相当于OC中的id类型)
  9. 微信小程序禁止刷新之后苹果端还可以下拉的问题
  10. Java项目排查cpu负载高