2014年4月11日

摘要: url:http://blog.csdn.net/xiangyong2008/article/details/6446887http://www.cnblogs.com/lan0725/archive/2008/08/28/1873947.html 阅读全文
posted @ 2014-04-11 22:37 Technology 阅读(104) 评论(0) 推荐(0) 编辑

2013年12月25日

摘要: 电脑PC软件和NK701-GSM设备 阅读全文
posted @ 2013-12-25 18:05 Technology 阅读(139) 评论(0) 推荐(0) 编辑

2013年11月26日

摘要: public string Encrypt(string stringToEncrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = Encoding.GetEncoding("UTF-8").GetBytes(stringToEncrypt); des.Key = ASCIIEncoding.UTF8.GetBytes(sKey); des.IV = ASCIIEncoding.UTF8.GetBytes(sKe 阅读全文
posted @ 2013-11-26 20:17 Technology 阅读(202) 评论(0) 推荐(0) 编辑

2013年11月22日

摘要: iptables -t mangle -I PREROUTING -s xxx.xxx.xxx.xxx -j NFQUEUE意思: 在表(默认为:filter) 插入一条规则在进入路由之前 源IP包丢到NFQUEUEiptables -t mangle -I PREROUTING -d xxxxxxxxxxxxx -j NFQUEUE意思:在表(默认为:filter) 插入一条规则 目IP包丢到NFQUEUE为l7-filter编写过滤标签例如:http 80http为协议.80只是一个标记iptables -t mangle -P FORWARD DROP 过滤转发链iptables -t 阅读全文
posted @ 2013-11-22 18:11 Technology 阅读(424) 评论(0) 推荐(0) 编辑

2013年11月14日

摘要: Gedit l7-filter.CONF写拦协议http 6后面的数据应随便填吧```sudo l7-filter -vv -f /etc/l7-filter.CONF ---启动 L7sudo iptables -A INPUT -j NFQUEUE --queue-num 0 --加入iptabels 中可拦URL 阅读全文
posted @ 2013-11-14 17:59 Technology 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 1.iptabels 保存规则文件iptabels-save > /etc/iptabels.up.rules //路径2.-A 添加规则3.DROP 过滤4.ACCEPT 通过4.iptables -A OUTPUT -p tcp -m tcp --dport 80 -j DROP //过滤80 端口5.iptables -A OUTPUT -p tcp -m string --string "www.baidu.com" --algo kmp --dport 80 -j DROP 阅读全文
posted @ 2013-11-14 17:22 Technology 阅读(2206) 评论(0) 推荐(0) 编辑

导航