Logo ByteGopher
  • English
    中文
Logo Inverted Logo
  • Posts
  • Blog
  • CloudNative
  • Infrastructure
    • TimeSeriesDB
  • Kubernetes
  • Note C
  • Note Go
  • React
  • Tips
  • Nodus
  • Interview
  • Life
  • Linux
Hero Image

TCP 的有限状态机 CLOSED CLOSED SYN_SENT LISTENING ​ SYN_RECEIVED ESTABLISHED ESTABLISHED netfilter: Frame iptables: 数据报文过滤 防火墙: 硬件/软件 规则: 匹配标准和处理办法 默认规则: ​ 关闭 匹配标准: IP:源IP, 目标IP TCP: SPORT, DPORT SYN=1,FIN=0,RST=0,ACK=0 UDP:SPORT, DPORT ICMP: icmp-type 规则在内核空间 内核空间的TCPIP的协议栈上,开放给用户空间中的iptables API。 内核空间的工作框架: 用户空间的管理工具: system call 参考 openBSD Linux 2.0:ipfw/firewall Linux 2.2: ipchain/firewall Linux 2.4 : iptables/netfilter 1:07 1/proc/sys/net/ipv4/ip_forward 路由决策发生在数据包到达网卡, 送到TCPIP协议栈上的那一刻。 然后先发生路由决策 netfilter 补充在tcp ip协议上的3个hook function。 多个规则,自上而下,逐个检查, 不做拒绝或者放行策略 4: 刚刚进入本机网卡,还没有到达路由表。(地址转换k’k) 5: 即将离开本机的时候,路由决策做出之后。 规则链 PREROUTING INPUT FORWARD OUTPUT

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

查看端口的占用情况 1netstat -atunlp 2 3# 用来查看系统当前网络状态信息, 包括端口、连接情况等 4# -t: TCP端口 5# -u: UDP端口 6# -l: 仅显示监听Socket LISTEN状态的Socket 7# -p: 显示进程标识符和程序名称,每一个socket都属于一个程序 8# -n: 不进行DNS解析 9# -a: 显示所有连接的端口 10 11 12 13 14lsof 15# 列出当前系统打开文件(list open files) 16# -i:[num] 指定端口 1nslookup # 域名解析 2host 3dig

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

mwan3 单线多拨

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

1 docker run -d -p 27017:27017 --name mongo_4_4_2 mongo:4.4.2 mongosh 命令行client https://docs.mongodb.com/mongodb-shell/install 1If you need to have node@14 first in your PATH run: 2 echo 'export PATH="/usr/local/opt/node@14/bin:$PATH"' >> ~/.zshrc 3 4For compilers to find node@14 you may need to set: 5 export LDFLAGS="-L/usr/local/opt/node@14/lib" 6 export CPPFLAGS="-I/usr/local/opt/node@14/include" mongo doc https://mongoing.com/docs/tutorial/query-documents.html

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

January 1, 0001 Read
Hero Image

January 1, 0001 Read
  • ««
  • «
  • 2
  • 3
  • 4
  • 5
  • 6
  • »
  • »»
Navigation
  • About
  • Skills
  • Recent Posts
  • My Story
Contact me:
  • renqiqiang@outlook.com

Stay up to date with email notification

By entering your email address, you agree to receive the newsletter of this website.

Toha Theme Logo Toha
© 2020-2022 Copyright.
Powered by Hugo Logo