ssh -ND 1082 ubuntu@1.1.1.1
在本地开一个1082端口,做动态转发,暴露为socks5协议。程序需要明确生命使用该代理。比如 proxychains4
和 google ext SwitchyOmega
``` | |
// Python版本重构 | |
// 定义了一个连接结构体 | |
type ESConnection struct { | |
mux sync.RWMutex | |
Client *http.Client | |
Host string | |
Auth bool | |
Aws AwsAuth | |
} |
netstat -lntp
-l, --listening
Show only listening sockets. (These are omitted by default.)
--numeric , -n
Show numerical addresses instead of trying to determine symbolic host, port or user names.
-p, --program
Show the PID and name of the program to which each socket belongs.
[--tcp|-t] [--udp|-u] [--raw|-w]