如下是具有双网卡的Linux服务器,数据入口网卡是eth0,数据出口网卡是eth1: 而Linux**防火墙**的工作区域为下图中的绿色阴影部分(防火墙的概念这里不赘述): Linux系统中防火墙功能的两大角色:iptables和netfilter。iptables是Linux系统下应用层内置控制防 ...
分类:
其他好文 时间:
2020-01-28 14:02:00
阅读次数:
102
题目如下: Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rul ...
分类:
其他好文 时间:
2020-01-27 19:03:33
阅读次数:
71
interface FastEthernet0 ip address dhcp ip nat outside ip virtual-reassembly ! interface FastEthernet1 no ip address pppoe enable no cdp enable ! inte ...
分类:
移动开发 时间:
2020-01-27 17:04:58
阅读次数:
83
查看防火墙是否启动 启动/停止防火墙服务 查看iptables里的表项: 清空iptabls里的规则: iptables:包过滤型的防火墙 Firewall:防火墙,隔离工具,工作主机或网络边缘,对于进出本主机或网络的的报文,根据事先定义的检查规则做匹配检测,做出响应的处理 Firewall分类1: ...
分类:
系统相关 时间:
2020-01-27 09:38:23
阅读次数:
78
在防火墙中开放端口80和端口22的方法如下: #/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT #/etc/rc.d/init.d/ipt ...
分类:
其他好文 时间:
2020-01-26 23:49:52
阅读次数:
88
rsync nfs sersync httpd环境: 角色 外网IP(NAT) 内网IP(LAN) 主机名 Rsync服务端 eth0:10.0.1.51 eth1:172.16.1.51 backup NFS&Sers服务端 eth0:10.0.1.41 eth1:172.16.1.41 nfs ...
分类:
其他好文 时间:
2020-01-26 20:53:23
阅读次数:
111
不知道为啥我安装vmware之后 相关nat dhcp服务默认禁用 导致虚拟机无法连接网络 后来发现是火绒等杀毒软件 把启动项关闭了 允许启动就好了 ...
分类:
系统相关 时间:
2020-01-26 10:26:39
阅读次数:
153
一段学习的结束 我也不知道我这是在写些什么,只是觉得学完了一些东西,就是想把它记录 一下,这样我就可以知道我是学过这一块的,要多激励自己,^_^O(∩_∩)O哈哈~ 以下内容并不完全与标题匹配,不过以下内容综合了前面几篇的应用,并增加了 部分东西 js带码要和html代码一起看 ...
分类:
Web程序 时间:
2020-01-25 18:14:09
阅读次数:
107
规则配置: iptables -P OUTPUT ACCEPT 1.关闭原先CentOS7自带的firewall防火墙: systemctl stop firewalld 2.安装或更新iptables服务yum install iptables-services 3.启动iptablessyste ...
分类:
其他好文 时间:
2020-01-25 18:08:22
阅读次数:
70
一、前言服务器有的时候会被人搞崩,cpu莫名飙升,为了查看哪些IP访问过于频繁,就可以使用netstat、awk等指令进行统计查看。二、指令对一些常用的指令总结如下:1、常用指令对连接的IP按连接数量进行排序:Shellnetstat-ntu|awk‘{print$5}‘|cut-d:-f1|sort|uniq-c|sort-n1netstat-ntu|awk‘{print
分类:
Web程序 时间:
2020-01-25 14:06:53
阅读次数:
196