查看完整版本 : centos死機及保安問題

wm20472 2013-8-9 11:18 AM

centos死機及保安問題

問題一:

我的私服 (centos) 每隔一段時間就死機 (不能連接http、smtp伺服器), 但可以ssh登入reboot server
reboot後又可以正常返
請教各位大大, 我的私服那裡出問題? 我可以在server裡找到資料查出死機原因?

問題二:

我查log, 看見經常有不同的IP嘗試login我的server但不成功, 我可以有甚麼方法提升保安程度?

謝謝各位指教~

星海揚帆 2013-8-10 02:03 PM

1. 其實唔使重新開機
只需要重啟連接唔到既伺服器(daemon)如apache即可

2. 無問題
只係所謂「寬頻譜掃描」

godfreyhon 2013-8-13 01:11 PM

Centos problem

I think you should set up a Cron job for your server to reboot or restart the service once in a while!

For your second questions, isn't that setting up IP table will help for the attrack?

qweefbb 2013-8-14 11:06 AM

1. You can find the log of the daemon under /var/log

2. Only run necessary daemons, i.e. minimize the service provided by your server. Set up ip tables to only allow serveral service to get access to your server. You may also setup tcp wrappers. You may also want to write some scripts to block the ip.
For each service, such as sshd, httpd, you should read the documentation to find a suitable config, enhancing the security of your server.

星海揚帆 2013-8-14 11:07 PM

Only open the ports used by the daemons on the server
Put the server behind a firewall
頁: [1]
查看完整版本: centos死機及保安問題