zlingh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年12月2日

摘要: https://segmentfault.com/a/1190000021888536 https://zhuanlan.zhihu.com/p/57630633 SSH 命令的三种代理功能(-L/-R/-D) ssh 命令除了登陆外还有三种代理功能: 正向代理(-L):相当于 iptable 的 阅读全文
posted @ 2021-12-02 23:01 zlingh 阅读(3082) 评论(0) 推荐(0) 编辑

2018年8月30日

摘要: 阅读全文
posted @ 2018-08-30 00:42 zlingh 阅读(149) 评论(0) 推荐(0) 编辑

2018年4月3日

摘要: 获取当前时间:time.Now()。返回time对象 获取当前时间戳:time.Now().Unix() 一、转time对象 1. 时间戳整数转time,Unix():time.Unix(time.Now().Unix(),0) 2.字符串转time,Parse():time.Parse("2006 阅读全文
posted @ 2018-04-03 19:20 zlingh 阅读(217) 评论(0) 推荐(0) 编辑

2018年3月28日

摘要: 1.增加 2.删除 不为空的为删除条件 3.修改 第一个是更新的bean,不为空则更新 第二个是查找条件的bean,不为空的为条件 4.查找 阅读全文
posted @ 2018-03-28 20:33 zlingh 阅读(1662) 评论(0) 推荐(0) 编辑

2018年1月31日

摘要: https://studygolang.com/articles/10776 http://www.360doc.com/content/15/0520/10/21412_471902987.shtml crt、key以及pem的区别以及生成 crt — Alternate synonymous m 阅读全文
posted @ 2018-01-31 14:14 zlingh 阅读(378) 评论(0) 推荐(0) 编辑

2017年12月5日

摘要: 每个shell有自己特有的变量(set)显示的变量,这个和用户变量是不同的,当前用户变量和你用什么shell无关,不管你用什么shell都在,比如HOME,SHELL等这些变量,但shell自己的变量不同shell是不同的,比如BASH_ARGC, BASH等,这些变量只有set才会显示,是bash 阅读全文
posted @ 2017-12-05 17:34 zlingh 阅读(274) 评论(0) 推荐(0) 编辑

2017年11月28日

摘要: server_name可为IP/domain/localhost/null等任何字符串(字符串server_name也可以用来匹配),注意各个 server 块的顺序。 1.如果只有一个server,server_name可以任意起(可以为IP/域名/任何字符串),则不论用什么访问(IP/域名/字符 阅读全文
posted @ 2017-11-28 15:21 zlingh 阅读(6634) 评论(0) 推荐(0) 编辑

2017年10月30日

摘要: 1.抓包另存为文件 tcpdump -i xgbe0 -s 0 -w /tmp/tmp.pcap -s 设置数据报截取长度,默认68字节,去掉这个限制加上-s 0即可 2.抓包可视化ascii显示 tcpdump -i xgbe0 -s 0 -A tcpdump -i xgbe0 -s 0 -X 此 阅读全文
posted @ 2017-10-30 11:05 zlingh 阅读(306) 评论(0) 推荐(0) 编辑

摘要: 目标: 将线上服务lighttpd(8000端口)的流量引流到线下测试机 一、测试机: tcpcopy-server,接收流量 modprobe ip_queue iptables -L iptables -I OUTPUT -p tcp --sport 8000 -j QUEUE ./interc 阅读全文
posted @ 2017-10-30 11:05 zlingh 阅读(847) 评论(0) 推荐(0) 编辑

摘要: 一:添加屏蔽IP #禁止此IP访问服务器iptables -I INPUT -s 1.2.3.4 -j DROP或iptables -A INPUT -s 1.2.3.4 -j DROP#禁止服务器访问此IPiptables -A OUTPUT -d 1.2.3.4 -j DROP如果要封某个网段: 阅读全文
posted @ 2017-10-30 11:03 zlingh 阅读(3395) 评论(0) 推荐(0) 编辑