Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

11 total results found

POC Proxy

Linux Networking

机器 poc-proxy 192.168.255.250 Nginx/etc/nginx/vhost IPTables iptables -t nat -L -n -v Chain PREROUTING (policy ACCEPT 17M packets, 1432M bytes) pkts bytes target prot opt in out source destination 51238 3072K DNAT t...

linux
networking
iptalbes
example
operating-system

IPVS

Linux Networking

operating-system
linux
networking
ipvs
status
todo

netstat/lsof/ss

Linux Networking

pgsql port is visible by lsof not netstat or ss k8s pod port is visible by netstat not lsof 这种差异主要是因为 netstat 和 lsof 工作原理不同: netstat 的工作方式: 主要通过读取 /proc/net/ 下的网络相关文件 显示的是系统网络栈中的连接信息 更关注传统的网络连接和套接字 lsof 的工作方式: 显示所有打开的文件描述符 包括常规文件、目录、网络套接字等 能看到更底层的文件描述符信息 对...

operating-system
linux
networking
netstat
lsof
ss

Rsync

Linux Networking

Configuration /etc/rsyncd.conf ## /etc/rsyncd: configuration file for rsync daemon mode --- ## See rsyncd.conf man page for more options. --- ## configuration example: port = 873 uid = root gid = root use chroot = yes max connections = 50 strict modes...

operating-system
linux
networking
rsync

Scanner

Linux Networking

Nmap Subfinder

status
todo
scan
operating-system
linux
networking

VIP

Linux Networking

背景 在使用 Ansible 安装 K8s 集群的时候,配置了 192.168.88.48 作为 VIP 的地址。 Errorscouldn't get current server API group list: Get "https://kubernetes.example.local:6443/api?timeout=32s": dial tcp 192.168.88.48:6443: i/o timeout 辉哥:RFC 那么多保留地址任选一个也比这个C类好 VIP 用 C 类地址会有概率出问题,是...

operating-system
linux
networking
vip
lvs
load-balancing

TCP/IP Pseudo Files in Bash

Linux Tricks

TCP/IP pseudo-files are a special feature in Bash that allow you to open network connections using file-like syntax. They're not real files in the /dev directory — rather, Bash internally interprets paths like /dev/tcp/host/port and /dev/udp/host/port to creat...

operating-system
linux
networking
tcp
pseudo
tricks

Kernel Parameters

Linux Networking

## 设置本地端口范围为 1024-65000 echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range ## 启用 TCP TIME-WAIT 状态的套接字重用 echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse ## 启用 TCP TIME-WAIT 状态的套接字快速回收 echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle ## 设置 TCP FIN 超时时间为 30 秒 echo 3...

operating-system
linux
networking
kernel

tcpdump

Linux Networking

Specify Port & Flags tcpdump -i lo -nn -s 0 tcp port 9004 and '(tcp[tcpflags] & (tcp-syn|tcp-rst|tcp-ack) != 0)' -i lo:在本地回环接口 (lo) 上抓包,也就是抓取本机进程之间的 TCP 通信。 -nn:不对地址和端口做反向解析(直接显示数字 IP 和端口号)。 -s 0:设置抓取长度为 0,表示抓取整个数据包(默认只抓前 262 字节)。 tcp port 9004:只抓取目标端口 9004...

linux
networking
tcpdump

SSH Tunnel

Linux Networking

本地端口转发 Localhost 访问本地 http://localhost:8080 会转发到 192.168.x.x 的 localhost:8080。 在本机执行ssh -NL 8080:localhost:8080 root@192.168.xx.xx 参数 含义 8080(冒号前) 本地端口,也就是你本机的 8080 端口,会被 SSH 占用并监听 localhost:8080(冒号后) 远程目标地址和端口,SSH 登录的服务器上要访问的服务 数据流示意 你在本机访问 htt...

operating-system
linux
networking
ssh
tunnel
port-forward

Latency

Linux Networking

Time Cost curl -o /dev/null -s -w" time_namelookup: %{time_namelookup}s\n\ time_connect: %{time_connect}s\n\ time_appconnect: %{time_appconnect}s\n\ time_pretransfer: %{time_pretransfer}s\n\ time_starttransfer: %{time_starttransfer}s\n\ ...

operating-system
linux
networking
latency
curl