Archive for June, 2009

snmptranslate

Posted: 26th June 2009 by admin in linux security, network

snmptranslate -IR tcpPassiveOpens.0 TCP-MIB::tcpPassiveOpens.0 snmptranslate -On TCP-MIB::tcpPassiveOpens.0 .1.3.6.1.2.1.6.6.0 snmptranslate .1.3.6.1.2.1.6.6.0 TCP-MIB::tcpPassiveOpens.0

การเปิด timestamp จะทำให้ต้องเพิ่ม ‏ 12bytes ไว้ที่ TCP header ครับ Linux เปิด : echo 1 >/proc/sys/net/ipv4/tcp_timestamps ปิด : echo 0 >/proc/sys/net/ipv4/tcp_timestamps *BSD เปิด : sysctl -w TCPCTL_DO_RFC1323=true ปิด : sysctl -w TCPCTL_DO_RFC1323=false หรือ เปิด : sysctl -w net.inet.tcp.rfc1323=true ปิด : sysctl -w net.inet.tcp.rfc1323=false

command count tcp state

Posted: 8th June 2009 by admin in network, system
Tags:

netstat -tan | grep ‘:80 ‘ | awk ‘{print $6}’ | sort | uniq -c