1.实体拓扑2,主机网卡设置echo"1">>/proc/sys/net/ipv4/ip_forward#开启路由转发3.客户机网络配置#设置客户机ip为10.段的并且网关指向10.1.1.1#ping一下网关测试4.设置主机NAT规则iptables-tnat-APOSTROUTING-s10.1.1.1/24-jSNAT--to-source192.168.0.
分类:
其他好文 时间:
2019-11-05 09:38:27
阅读次数:
166
CentOS7与以前常用的CentOS6还是有一些不同之处的,比如在设置开放端口的时候稍许有些不同,常用的iptables命令已经被firewalld代替。这几天正好有在CentOS7系统中玩Seafile自建网盘,默认的时候是没有开启8082端口的,然后看到CentOS7开放端口稍微与CentOS ...
分类:
其他好文 时间:
2019-11-04 17:30:41
阅读次数:
275
一、Linux-agent端的操作: vim /etc/hostname HOSTNAME=agent.zabbix.com hoastname agent.zabbix.com bash cat /etc/hosts127.0.0.1 localhost localhost.localdomain ...
分类:
其他好文 时间:
2019-11-04 15:18:05
阅读次数:
116
简介: NFS(Network Files System)即网络文件系统,NFS文件系统协议允许网络中的主机通过TCP/IP协议进行资源共享,NFS客户端可以像使用本地资源一样读写远端NFS服务端的资料,需要注意NFS服务依赖于RPC服务与外部通信,所以必需保证RPC服务能够正常注册服务的端口信息才 ...
分类:
其他好文 时间:
2019-11-03 22:15:36
阅读次数:
102
iptables详解之filteriptables令很多小伙伴脑阔疼,下面我们来说说如何使用iptables。一、iptables格式1.1、iptables帮助通过iptables--help查看一下iptables用法[root@note1~]#iptables--helpiptablesv1.4.21Usage:iptables-[ACD]chainrule-specification[op
分类:
其他好文 时间:
2019-11-02 23:46:39
阅读次数:
157
问题: 本地安装完mysql,无法远程连接 1、检查mysql进程是否启动 2、查看端口是否监听 3、查看iptables配置 4、云服务器检查下出入网有没有添加对应的端口 5、mysql是否授权对应的账号远程访问 也可以查看mysql用户表 ...
分类:
数据库 时间:
2019-11-02 18:21:36
阅读次数:
95
1、关闭firewalld,安装iptables-server并启动服务 systemctl stop firewalld systemctl disable firewalld yun -y install iptables-server yum -y install iptables-serve ...
分类:
其他好文 时间:
2019-11-01 18:54:12
阅读次数:
130
CentOS7默认的防火墙不是iptables,而是firewalle#先检查是否安装了iptablesserviceiptablesstatus#安装iptablesyuminstall-yiptables#升级iptablesyumupdateiptables#安装iptables-servicesyuminstalliptables-services禁用/停止自带的firewalld服务#停
分类:
其他好文 时间:
2019-10-31 18:41:08
阅读次数:
283
1、在之前的版本中关闭防火墙等服务的命令是 service iptables stop /etc/init.d/iptables stop 2、RHEL7开始,使用systemctl工具来管理服务程序,包括了service和chkconfig systemctl list-unit-files|gr ...
分类:
其他好文 时间:
2019-10-31 11:52:58
阅读次数:
196
一、iptables防火墙(需要安装防火墙sudo apt-get install firewalld命令查看插件)1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptab ...
分类:
系统相关 时间:
2019-10-30 18:50:15
阅读次数:
128