Networking
Commands
ss summary ss -s Total: 1785 TCP: 2635 (estab 1564, closed 1026, orphaned 23, timewait 1013) ...
tcpdump
Specify Port & Flags tcpdump -i lo -nn -s 0 tcp port 9004 and '(tcp[tcpflags] & (tcp-syn|tcp-rst...
VIP
背景 在使用 Ansible 安装 K8s 集群的时候,配置了 192.168.88.48 作为 VIP 的地址。 Errorscouldn't get current server API ...
IPVS
Scanner
Nmap Subfinder
Kernel Parameters
## 设置本地端口范围为 1024-65000 echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range ## 启用 TCP TIME...
POC Proxy
机器 poc-proxy 192.168.255.250 Nginx/etc/nginx/vhost IPTables iptables -t nat -L -n -v Chain PR...
netstat/lsof/ss
pgsql port is visible by lsof not netstat or ss k8s pod port is visible by netstat not lsof 这种差异主...
SSH Tunnel
本地端口转发 Localhost 访问本地 http://localhost:8080 会转发到 192.168.x.x 的 localhost:8080。 在本机执行ssh -NL 8080...
Rsync
Configuration /etc/rsyncd.conf ## /etc/rsyncd: configuration file for rsync daemon mode --- ##...
Traffic Stats
iftop apt-get update apt-get install iftop iftop -i eth1 -P tcpdump BytesMBtcpdump -i eth1 -n...
Latency
Time Cost curl -o /dev/null -s -w" time_namelookup: %{time_namelookup}s\n\ time_connect:...