[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包关闭连接时,不等缓冲区的包发送

[MySQL] MySQL Connection Phase Packets

MySQL Connection Phase Packets Initial Handshake Packet 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 [0a] protocol version string[NUL] server version 4 connection id string[8] auth-plugin-data-part-1 1 [00] filler 2 capability flags (lower 2 bytes) if more data in the packet: 1 character set 2 status flags 2 capability flags (upper 2 bytes) if capabilities &