• 防火墙规则:firewall


    firewall和iptables区别: iptables通过控制端口来控制服务,而firewalld则是通过控制协议来控制端口

    firewall

    (设置firewall规则后就不需要去设置iptables)

    显示状态:firewall-cmd --state

    设置开机启动:systemctl enable firewalld

    查看是否开启启动:systemctl list-unit-files|grep firewalld

    查看服务状态:systemctl status firewalld

    查看所有开放的端口:firewall-cmd --list-ports

    防火墙开放一个端口:firewall-cmd --zone=public -add-port=8088/tcp --permanent

    防火墙添加ip白名单:firewall-cmd --add-source=172.xx.xx.xx --zone=trusted

    防火墙查看规则:firewall-cmd --get-active-zones

    防火墙删除ip:firewall-cmd --remove-source=172.xx.xx.xx --zone=trusted

    防火墙关闭一个端口:firewallc-md --zone=public --remove-port=8088/tcp --permanent

    更新防火墙规则:firewall-cmd --reload

    iptables

    转自:https://blog.csdn.net/ll641058431/article/details/81542116

    其他相关:https://blog.csdn.net/weixin_40658000/article/details/78708375

  • 相关阅读:
    摄像机
    变换
    纹理
    从顶点数据中传入顶点位置和顶点颜色
    使用glew和glad 新建窗口
    openGL坐标系
    glViewport函数用法
    彻底搞懂CSS文本、空白换行问题
    Django 搭建
    HessianSharp如何部署到IIS7上?
  • 原文地址:https://www.cnblogs.com/jinziguang/p/13952145.html
Copyright © 2020-2023  润新知