zoukankan      html  css  js  c++  java
  • centos7.2放行80端口

    [root@localhost bin]# systemctl status firewalld.service
    ● firewalld.service - firewalld - dynamic firewall daemon
    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
    Active: active (running) since 三 2020-01-29 03:28:08 PST; 20min ago
    Docs: man:firewalld(1)
    Main PID: 507 (firewalld)
    CGroup: /system.slice/firewalld.service
    └─507 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid

    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete FORWARD --destination 192.168.122.0/24 --out-interface virbr0 --match conntrack --ctstate ...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete FORWARD --source 192.168.122.0/24 --in-interface virbr0 --jump ACCEPT' failed: iptables: B...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete FORWARD --in-interface virbr0 --out-interface virbr0 --jump ACCEPT' failed: iptables: Bad ...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete FORWARD --out-interface virbr0 --jump REJECT' failed: iptables: No chain/target/match by that name.
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete FORWARD --in-interface virbr0 --jump REJECT' failed: iptables: No chain/target/match by that name.
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete INPUT --in-interface virbr0 --protocol udp --destination-port 53 --jump ACCEPT' failed: ip...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete INPUT --in-interface virbr0 --protocol tcp --destination-port 53 --jump ACCEPT' failed: ip...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete OUTPUT --out-interface virbr0 --protocol udp --destination-port 68 --jump ACCEPT' failed: ...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete INPUT --in-interface virbr0 --protocol udp --destination-port 67 --jump ACCEPT' failed: ip...in that chain?).
    1月 29 03:28:09 localhost.localdomain firewalld[507]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -w --table filter --delete INPUT --in-interface virbr0 --protocol tcp --destination-port 67 --jump ACCEPT' failed: ip...in that chain?).
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@localhost bin]# sudo firewall-cmd --list-all
    public (active)
    target: default
    icmp-block-inversion: no
    interfaces: eno16777736
    sources:
    services: dhcpv6-client ssh
    ports:
    protocols:
    masquerade: no
    forward-ports:
    source-ports:
    icmp-blocks:
    rich rules:

    [root@localhost bin]# sudo firewall-cmd --add-service=http --permanent
    success
    [root@localhost bin]# sudo firewall-cmd --add-port=80/tcp --permanent
    success
    [root@localhost bin]# sudo firewall-cmd --reload
    success
    [root@localhost bin]# sudo firewall-cmd --list-all
    public (active)
    target: default
    icmp-block-inversion: no
    interfaces: eno16777736
    sources:
    services: dhcpv6-client http ssh
    ports: 80/tcp
    protocols:
    masquerade: no
    forward-ports:
    source-ports:
    icmp-blocks:
    rich rules:

    [root@localhost bin]#

  • 相关阅读:
    大龄开发人员如何破局
    在c++MFC下用PCL显示操作点云文件 MFC对话框显示操作PCL点云
    记录学习图像处理过程中不错的教程博客
    做三维模型识别目标定位配准测量的有关资料记录
    OpenCASCADE(一) VS2017+OpenCASCADE+MFC +win10下载配置安装运行单文档程序画个基本图形
    关于opengl中的三维矩阵平移代码,矩阵旋转代码,推导过程理解 OpenGL计算机图形学的一些必要矩阵运算知识 glTranslatef(x,y,z)glRotatef(angle,x,y,z)函数详解
    深度学习系列教程目录
    c/c++ 2019公司面试题目录
    c++ 知道旋转平移变换前后矩阵向量值 求旋转变换矩阵c++/c#代码 知道两个向量求他们的旋转变换矩阵
    OpenCV与MFC实战之图像处理 样本采集小工具制作 c++MFC课程设计
  • 原文地址:https://www.cnblogs.com/michaelcnblogs/p/12241109.html
Copyright © 2011-2022 走看看