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]#

  • 相关阅读:
    凭什么要用面向对象编程(补充)
    一篇面试题文章引发的“争议”
    伍迷创意随想集 之 杯具拥有个性,个性成就杯具
    Apple Mac OS X每日一技巧016:MacBook电源线如何缠绕
    Apple Mac OS X每日一技巧008:快速调整/删除菜单栏上的图标
    《C#妹妹和ObjectiveC阿姨对话录》(05)自动释放池--拆迁队的外援
    Apple Mac OS X每日一技巧005:Photo Booth把你的Mac当成照相机
    Apple Mac OS X每日一技巧010:查看本机的版本、版号和序列号
    Apple Mac OS X每日一技巧009:option键和菜单栏的系统图标
    Apple Mac OS X每日一技巧004:抓屏那点事(截屏/抓图/截图)
  • 原文地址:https://www.cnblogs.com/michaelcnblogs/p/12241109.html
Copyright © 2011-2022 走看看