본문 바로가기

전체 글

ddos 방화벽 룰 - 패스워드 공격 :iptables -A INPUT -p tcp —dport 22 -m state —state NEW -m recent —set —name SSHSCANiptables -A INPUT -p tcp —dport 22 -m state —state NEW -m recent —update —seconds 60 —hitcount 8 —rttl —name SSHSCAN -j LOG —log-prefix SSH_SCAN:iptables -A INPUT -p tcp —dport 22 -m state —state NEW -m recent —update —seconds 60 —hitcount 8 —rttl —name SSHSCAN -j DROP혹은 ../etc/rc.d/init.d/iptables save.. 더보기
UNIX IP Stack Tuning Guide v2.7 UNIX IP Stack Tuning Guide v2.7 UNIX IP Stack Tuning Guide v2.7 By Rob Thomas, robt at cymru.com, 03 DEC 2000 Introduction The purpose of this document is to strengthen the UNIX IP stack against a variety of attack types prevalent on the Internet today. This document details the settings recommended for UNIX servers designed to provide network intensive services such as HTTP or routing (firewall.. 더보기
죽은 프로세스 살리기 #include #include #include #include #include #include #include /* 검사 주기(초) */#define CHECK_SECOND 30 /* 실행 서버 패스 및 이름 */#define APP_PATH "/root/ztsvr/ztsvr"#define APP_NAME "ztsvr" int check_process();void get_timef(time_t, char *); int main(){ int rt; time_t the_time; char buffer[255]; char app[255]; sprintf(app, "nohup %s &", APP_PATH); printf("START\n"); fflush(stdout); while(1) { time(&the_t.. 더보기
How to kill zombie process [closed] I launched my program in the foreground (a daemon program), and then I killed it withkill -9, but I get a zombie remaining and I m not able to kill it withkill -9. How to kill a zombie process?If the zombie is a dead process (already killed), how I remove it from the output ofps aux?root@OpenWrt:~# anyprogramd & root@OpenWrt:~# ps aux | grep anyprogram 1163 root 2552 S anyprogramd 1167 root 2552.. 더보기