[Linux] iptables常用示例

Linux iptables常用示例 iptables简介 iptables是 Linux 内核集成的 IP 信息包过滤系统,用于对数据包的过滤和转发。 iptables的规

[Linux] iptables SNAT DNAT

Linux Iptables SNAT DNAT 任何一个IP数据包中,都有Source IP Address与Destination IP Address这两个字段, 路由器根据这两个字段来判定

[Go] 一个Golang实现的MySQL协议库介绍

go-mysqlstack is an MySQL protocol library implementing in Go (golang). 使用示例 下载 1 2 3 go get -u github.com/xelabs/go-mysqlstack/driver cd $GOPATH/src/github.com/xelabs/go-mysqlstack/ make test examples/mysqld.go mocks a MySQL server by running: 1 2 > go run mysqld.go 2020/08/22 19:01:44.518045 mysqld.go:102: [INFO] mysqld.server.start.address[:4407] examples/client.go mocks a client and query from the mock MySQL server: 1 2 > go run client.go 2020/08/22 19:01:50.530677 client.go:32: [INFO] results:[[[10 nice name]]] H

[TCP] TCP协议RST包介绍

TCP协议RST包介绍、出现场景 RST介绍 RST: TCP协议中重置、复位连接的标志位,用来关闭异常连接。 发送RST包关闭连接时,不等缓冲区的包发送