使用Bastille完美加固CentOS Linux系统Would you like to deactivate the following of symbolic links? -> YES Would you like to disable printing? -> YES Would you like to install TMPDIR/TMP scripts? -> NO Would you like to run the packet filtering script? -> YES <ENTER> Do you need the advanced networking options? -> NO DNS Servers: [0.0.0.0/0] -> **LEAVE DEFAULT** Public interfaces: -> eth+ TCP services to audit: -> telnet ftp imap pop3 finger sunrpc exec login linuxconf ssh UDP services to audit: -> 31337 ICMP services to audit: -> **BLANK** TCP service names or port numbers to allow on public interfaces: -> 21 22 25 53 80 110 111 143 443 631 953 993 995 3306 UDP service names or port numbers to allow on public interfaces: -> **BLANK** Force passive mode? -> YES TCP services to block: -> 2049 2065:2090 6000:6020 7100 UDP services to block: -> 2049 6770 ICMP allowed types: -> destination-unreachable echo-reply time-exceeded Enable source address verification? -> YES Reject method: -> DENY Interfaces for DHCP queries: -> **BLANK** NTP servers to query: -> **BLANK** ICMP types to disallow outbound: -> destination-unreachable time-exceeded Should Bastille run the firewall and enable it at boot time? -> YES Would you like to setup psad? -> YES psad check interval: -> 15 Port range scan threshold: -> 1 Enable scan persistence? -> NO Scan timeout: -> 3600 Show all scan signatures? -> NO Danger Levels: -> 5 50 1000 5000 10000 Email addresses: -> root@localhost Email alert danger level: -> 1 Alert on all new packets? -> YES Enable automatic blocking of scanning IPs? -> NO Should Bastille enable psad at boot time? -> YES Are you finished answering the questions, i.e. may we make the changes? -> YES <TAB> Edit SSH ConfigurationThis will take an extra step to secure SSH. The following settings will:
vi /etc/ssh/sshd_config Edit the following lines and remove the remark. Do not forget to save and exit. #Protocol 2,1 -> Protocol 2 Reboot the systemPlease reboot the system as a final check. Ensure everything starts properly. reboot 原文链接:http://www.howtoforge.com/bastille_firewall_centos 上一篇:CentOS系统安装后的初始环境设置 下一篇:在CentOS 4.4上安装配置OpenVZ 更多相关文章
|
推荐文章
|