52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4533|敺: 0
銝銝銝駁 銝銝銝駁

[linux隞也 netstat 瑼X IP 蝺賊撠 IP

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-2-13 08:41:52 | 芰閰脖 撣 |摨閬 |梯璅∪
awk, cut, sort, uniq 隞, 臭誑啣箸 ip 蝺賊, 銝衣券蝺賊摨勗撠, 隞乩撠 TCP ESTABLISHED 蝺瑼X:
  1. netstat -an|grep ESTABLISHED|awk '/^tcp/ {print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -nr|more
銴鋆賭誨蝣
撠 port 80 蝺, 撠瘥 ip 蝺賊啣箔蒂脰摨:
  1. netstat -ntu | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr|more
銴鋆賭誨蝣
箸憭交貊 10 IP 園交賂嗡葉 :80 舫亙嚗舀寞唾瑼X亦
  1. netstat -atnp -A inet | grep ":80" | awk -F " " '{print $5}' | awk -F ":" '{print $1}' | sort | uniq -c | sort -nr | head -10
銴鋆賭誨蝣

+ e1 W- P( `) M" m7 M隞乩寞曉唬皞 ip 敺, 靘憒 ip x.x.x.x, 臭誑 iptables 餅餅4 q3 O+ N) z; j% ?  A$ M$ K
撠 IP
  1. iptables -A INPUT -p all -s x.x.x.x/32 -j DROP
銴鋆賭誨蝣
閫文 IP
  1. iptables -D INPUT -p all -s x.x.x.x/32 -j DROP
銴鋆賭誨蝣
隞乩:
" O* \/ c$ e" ?* y9 |5 s7 [5 ohttps://www.phpini.com/linux/linux-netstat-detect-ddos' T+ w9 n  ]2 Z9 l. r( r" s- }
https://www.phpini.com/linux/count-ip-connections! T: t- O# \. X, w( n" f% ]
https://www.phpini.com/linux/netstat-check-connections
6 Y  D5 i" z3 {: ^4 f" s- [=================================================5 J5 D( h: U( }
血嚗0 t) P1 p- Q  U' V. b* h8 x* V
亥岷芯port鋡怠芯函撘雿剁& V* _2 Z1 \  U$ p+ O6 B2 K
1.)
  1. netstat -tulpn | grep LISTEN
銴鋆賭誨蝣
2.)
  1. lsof -i -P -n | grep LISTEN
銴鋆賭誨蝣
3.)
  1. sudo nmap -sT -O localhost
銴鋆賭誨蝣
=================================================
8 Y* P% x- f3 z( G% m: S3 O亥岷port雿函backlog
  1. ss -nlt
銴鋆賭誨蝣
backlog閰脣憭改 嚗 https://cloud.tencent.com/developer/article/1644836
! ~9 R1 f; s/ }  J* X

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-23 18:10 , Processed in 0.068301 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵