centos开启和关闭防火墙命令(1)临时生效,重启后还原开启: # service iptables start关闭: # service iptables stop(2)永久性关闭,重启后不会还原开启: # chkconfig iptables on关闭: # chkconfig iptable...
                            
                            
                                分类:
其他好文   时间:
2014-07-12 00:25:32   
                                阅读次数:
185
                             
                         
                    
                        
                            
                            
                                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
                             
                         
                    
                        
                            
                            
                                AOSP ON MAKO(在NEXUS 4上刷ANDROID 4.4 源码包-下载/配置/编译/刷机)
特别感谢google官方文档及AOSP源码开放
参考链接:
https://source.android.com/source/building-devices.html (官方源码刷device)
https://developers.google.com/android/nexu...
                            
                            
                                分类:
移动开发   时间:
2014-07-06 10:56:04   
                                阅读次数:
339
                             
                         
                    
                        
                            
                            
                                当我编译完内核参数后,#/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
                             
                         
                    
                        
                            
                            
                                snat:iptables -t nat -A POSTROUTING -s 192.168.1.14 -j SNAT --to-source 10.32.15.34其中,-s 192.168.1.14是想要访问外网的内网主机的ip,--to-source 10.32.15.34为做nat的serv...
                            
                            
                                分类:
其他好文   时间:
2014-07-05 20:16:40   
                                阅读次数:
265
                             
                         
                    
                        
                            
                            
                                #!/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
                             
                         
                    
                        
                            
                            
                                1.配置网卡IP地址#ifconfigeth0192.168.186.1882.关闭防火墙#iptables-F3.安装软件所需要的软件:bind和caching-name#rpm-ivhbind-9.3.6-4.P1.el5#rpm-ivhcaching-nameserver-9.3.6-4.P1.el54.修改named.conf配置文件修改named.caching-nameserver.conf#cp/etc/named.caching-n..
                            
                            
                                分类:
其他好文   时间:
2014-07-02 15:52:02   
                                阅读次数:
209
                             
                         
                    
                        
                            
                            
                                转自:http://robert.penz.name/658/howto-access-mtp-devices-via-usb-on-ubuntu-12-04/ A friend asked me how he can access his Nexus 7 device via USB on hi....
                            
                            
                                分类:
其他好文   时间:
2014-07-02 13:51:19   
                                阅读次数:
289
                             
                         
                    
                        
                            
                            
                                iptables组件是一种工具,也称为用户空间(userspace),它使插入、修改和除去信息包过滤表中的规则变得容易。分为四个表和五个链,其中表是按照对数据包的操作区分的,链是按照不同的Hook点来区分的,表和链实际上是netfilter的两个维度。4个表:filter,nat,mangle,raw,默认表..
                            
                            
                                分类:
其他好文   时间:
2014-07-01 09:42:19   
                                阅读次数:
410