公司最近对网络安全抓的比较严,要求防火墙必须开启,但是项目的服务器有五六台,三台用于负载均衡,服务器之间必须要进行各种连接,那就只能通过添加白名单的方式. 登上服务器,编辑防火墙配置文件 vi /etc/sysconfig/iptables 把需要访问本台服务器的其他服务器ip地址,以及本台服务器需要开放的端口号添加上 如下: # Firewall configuration written by system-config-firewall # Manual customization of
http://blog.csdn.net/catoop/article/details/50476099 登录信息在 /var/log/secure linux ip白名单 配置文件:/etc/hosts.allow /etc/hosts.deny # # hosts.allow This file contains access rules which are used to # allow or deny connections to network serv
1.认识启动配置选项 [root@server5 ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel an