2019年7月23日星期二

Centos7下firewall的使用


firewall的基本使用

启动: systemctl start firewalld
查看状态: systemctl status firewalld  
停止: systemctl disable firewalld  
禁用:systemctl stop firewalld

配置firewall-cmd

查看版本: firewall-cmd --version
查看帮助: firewall-cmd --help
显示状态: firewall-cmd --state
查看所有打开的端口: firewall-cmd --zone=public --list-ports
更新防火墙规则: firewall-cmd --reload
查看区域信息:  firewall-cmd --get-active-zones
查看指定接口所属区域: firewall-cmd --get-zone-of-interface=eth0
拒绝所有包:firewall-cmd --panic-on
取消拒绝状态: firewall-cmd --panic-off
查看是否拒绝: firewall-cmd --query-panic

开启或者关闭一个端口

添加:  firewall-cmd --zone=public --add-port=80/tcp --permanent    (--permanent永久生效,没有此参数重启后失效)
重新载入:  firewall-cmd --reload
查看:  firewall-cmd --zone= public --query-port=80/tcp
删除:  firewall-cmd --zone= public --remove-port=80/tcp --permanent  

2 条评论:

  1. Las Vegas Casino & Hotel, NV MapYRO
    Find your way around the casino, exploring an array of gaming and 하남 출장샵 dining 서귀포 출장샵 destinations, as well as finding an in-room 강원도 출장샵 spa.Are there any amenities at all of the Las Vegas Casino & Hotel?How far 나주 출장안마 is the Las Vegas 서산 출장마사지 Casino & Hotel from the airport?

    回复删除
  2. Contact our professional staff right now to get began planning your subsequent occasion right now. Take a minute to orient your self with our interactive casino map, so have the ability to|you probably can} make the most of|take advantage of|benefit from} your experience at dafabet the World's Biggest Casino. The best in Texas Hold ‘Em is just north of Texas. When you play Ultimate Texas Hold ‘Em at WinStar, it’s sure to be a wild experience.

    回复删除

Mac卸载PKG

pkg常用命令  pkgutil --pkgs 查看所有 pkg pkgutil --export-plist <pkg-id> 查看pkg信息  pkgutil --files  <pkg-id> 查看pkg所有资源  sudo pkgutil --fo...