CentOS7和fedora21使用firewalld作为防火墙,本例使用fedora21作为示例。
查看防火墙状态
firewall-cmd --state
输出
running
查看活动区域并附带网络接口
firewall-cmd --get-active-zones
输出
FedoraWorkstation
interfaces: enp3s0
通过网络接口查看对应的区域
firewall-cmd --get-zone-of-interface=enp3s0
输出
FedoraWorkstation
通过区域名获得所有网络接口
firewall-cmd --zone=FedoraWorkstation --list-interfaces
输出
enp3s0
通过区域名获得此区域的信息
firewall-cmd --zone=FedoraWorkstation --list-all
输出
FedoraWorkstation (default, active)
interfaces: enp3s0
sources:
services: dhcpv6-client mdns samba-client ssh
ports: 1025-65535/udp 1025-65535/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
查看当前区域活动的services
firewall-cmd --get-service
输出
amanda-client amanda-k5-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns freeipa-ldap freeipa-ldaps freeipa-replication ftp high-availability http https imaps ipp ipp-client ipsec kadmin kerberos kpasswd ldap ldaps libvirt libvirt-tls mdns mountd ms-wbt mysql nfs ntp openvpn pmcd pmproxy pmwebapi pmwebapis pop3s postgresql privoxy proxy-dhcp puppetmaster radius rpc-bind samba samba-client sane smtp squid ssh synergy telnet tftp tftp-client tor-socks transmission-client vnc-server wbem-https xmpp-bosh xmpp-client xmpp-local xmpp-server
增加端口到防火墙中
firewall-cmd --zone=FedoraWorkstation --add-port=8080/tcp --permanent
firewall-cmd --zone=FedoraWorkstation --add-port=5060-5061/udp --permanent
删除
firewall-cmd --zone=FedoraWorkstation --remove-port=8080/tcp
firewall-cmd --zone=FedoraWorkstation --remove-port=5060-5061/udp
增加服务到防火墙中
firewall-cmd --zone=FedoraWorkstation --add-service=smtp --permanent
删除
firewall-cmd --zone=FedoraWorkstation --remove-service=smtp
相关推荐
Centos7/8下.vimrc脚本固定格式配置
制作版本 centos update src.rpm seabios-0.6.1.2-8.el6 ...ubuntu fedora 其他linux 应该都能用 稍后上传seabios-1.6.3 DELL windows 7 oem slic 2.1 bios 自动激活。 windows xp slic DMI 没验证,验证情况给个评价
中标麒麟v7/银河麒麟v10/uos20/centos7/centos8/其他linux系统在aarch64/arm64的cpu架构下可以使用的electron。 该版本采用源码编译而来,解决electron在aarch64下白屏及崩溃等问题。 electron版本:7.1.4 ...
防火墙配置及相关说明centos 7中防火墙是一个非常的强大的功能了,但对于centos 7中在防火墙中进行了升级了,下面我们一起来详细的看看关于centos 7中防火墙使用方法。 FirewallD 提供了支持网络/防火墙区域(zone)...
Centos7/windows10 定时备份脚本(仅供自己使用)
CentOS7/RHEL7 pacemaker+corosync高可用集群搭建
Linux(centos7/8)基础命令详解
http://mirrors.btte.net/centos/7/isos/x86_64/ http://mirrors.cn99.com/centos/7/isos/x86_64/ http://mirrors.sohu.com/centos/7/isos/x86_64/ http://mirrors.aliyun.com/centos/7/isos/x86_64/ ...
一个centos7/rhel7 系统配置samba服务的教程,特别是实现windows下的share级共享
CentOS 7安装和设置防火墙
centos7上firewall的使用介绍。centos 7中防火墙是一个非常的强大的功能了,但对于centos 7中在防火墙中进行了升级了,下面我们一起来详细的看看关于centos 7中防火墙使用方法
CentOS7使用firewalld打开关闭防火墙与端口 CentOS7使用firewalld打开关闭防火墙与端口
Centos7防火墙firewalld探究与使用.pdf 更多资源请点击:https://blog.csdn.net/weixin_44155966
CentOS7各个版本镜像下载地址 # CentOS7.6 下载地址 ...http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G ...
centos 7中防火墙是一个非常的强大的功能了,这篇文章主要介绍了CentOS7下Firewall防火墙配置用法详解(推荐),小编觉得挺不错的,现在分享给大家,也给大家做个参考。
centos7/Redhat7 zabbix agent RPM安装包 zabbix-agent-4.2.4-1.el7.x86_64.rpm
centos7.6/7,7+zabbix4.4.7+mysql5.7+grafana6.4.4安装指导 本人亲测,自用没毛病,centos的Firewalld ,selinux 需关闭。
CentOS7 打开关闭防火墙与端口 1、firewalld的基本使用 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
开源工具来源于:https://github.com/sipcapture/heplify 给上执行权限,直接执行就行,抓取的信令会直接打印在屏幕上,centos6/7 chmod +x heplify ./heplify
centos7.3/联想打印机/兄弟打印机/驱动安装/底层驱动安装 联想很多型号打印机没有Linux驱动,如果不知道那款驱动通用,可在日本兄弟官网上找:看哪一款和联想外形一样或者非常接近的,这款打印机的Linux驱动基本都会...