查看是否开启:service iptables status关闭方法:service iptables stop永远关闭:Ntsysv把iptables前的*号去掉。查看SELinux状态:1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开...
分类:
其他好文 时间:
2014-07-16 21:41:22
阅读次数:
185
五、filter过滤和转发a、打开内核的IP转发#sysctl-wnet.ipv4.ip_forward=1或#echo1>/proc/sys/net/ipv4/ip_forwardb、基本匹配条件·通用匹配→可直接使用,不依赖于其他条件或扩展→包括网络协议、IP地址、网络接口等条件·隐含匹配→要求以特定的协议匹配作为前提→包括端..
分类:
系统相关 时间:
2014-07-12 16:52:14
阅读次数:
397
centos开启和关闭防火墙命令(1)临时生效,重启后还原开启: # service iptables start关闭: # service iptables stop(2)永久性关闭,重启后不会还原开启: # chkconfig iptables on关闭: # chkconfig iptable...
分类:
其他好文 时间:
2014-07-12 00:25:32
阅读次数:
185
Linux ssh登陆老提示“permission denied,please try again” ,但是iptables已经关掉了修改/etc/ssh/sshd_config文件。找如下的一句#PermitRootLogin yes改为如下的PermitRootLogin yes注意,要把前面的...
分类:
系统相关 时间:
2014-07-11 09:05:33
阅读次数:
269
开源的运维系统不少,比如nagios、zabbix、cati等等,但是遇到自己个性化的运维需求的时候,总是显的力不从心!最近在学习python,所以就考虑用python+django+twisted来定做一个完全个性化的运维系统。
运维系统有几个主要的功能:监控、分析、报警、更甚者直接根据分析的结果进行反应操作。而以上几点通过上述的框架可以比较容易的实现。
下面上图说明:
使用freem...
分类:
编程语言 时间:
2014-07-11 00:32:16
阅读次数:
573
1.新安装一台RHEL6.x或CentOS6.x虚拟机1)关闭防火墙、SELinux[root@localhost~]#serviceiptablesstop//关闭防火墙iptables:清除防火墙规则:[确定]iptables:将链设置为政策ACCEPT:filter[确定]iptables:正在卸载模块:[确定][root@localhost~]#chkconfigiptablesoff[root@..
分类:
系统相关 时间:
2014-07-08 10:10:44
阅读次数:
298
当我编译完内核参数后,#/sbin/sysctl-perror:"net.bridge.bridge-nf-call-ip6tables"isanunknownkeyerror:"net.bridge.bridge-nf-call-iptables"isanunknownkeyerror:"net.bridge.bridge-nf-call-arptables"isanunknownkey去网上一查,发现缺少bridge这个模块文件通过执行:mo..
分类:
其他好文 时间:
2014-07-05 23:05:49
阅读次数:
234
#!/bin/bashwhiletruedo badip=$(lastb-i-a|awk‘/ssh:notty/{print$NF}‘|sort|uniq-c|awk‘($1>3){print$2}‘) foriin$badip do iptables-tfilter-IINPUT-s$i-ptcp--dport22-jDROP done :>/var/log/btmp sleep10sdone
分类:
移动开发 时间:
2014-07-04 06:22:09
阅读次数:
364
zabbix安装+邮件(短信)报警一、zabbix的安装安装开发软件包1、yum-ygroupinstall"DevelopmentTools"2、安装所需的依赖包yum-yinstallhttpdmysqlmysql-servermysql-develphpphp-mysqlphp-commonphp-mbstringphp-gdphp-odbcphp-pearphp-bcmath.x86_64curlcurl-develnet-snmpnet..
分类:
其他好文 时间:
2014-07-04 00:42:06
阅读次数:
442