Init script for CentOS 7 - Configure static IP, Fail2Ban, Docker, etc.
Table of Contents
A basic init script for getting Docker up and running in CentOS 7. Provides an interactive prompt for configuring network information and utilizes Fail2Ban to thwart SSH intrusion.
- CentOS-7-x86_64-DVD.iso (Minimal install not currently supported)
- Root privilege
Install CentOS-7-x86_64-DVD.iso and run ./init.sh
. Provide information for Time Zone and Network config. First run may take some time as multiple packages are configured for update.
- Time Zone: America/New_York
- Static IP and CIDR: 192.168.1.100/24
- Gateway: 192.168.1.1
- DNS1: 192.168.1.1
- DNS2: 8.8.8.8
- Hostname: centos7-docker
- SSH root access disabled
- SSH retries limited to 3 per 10 minutes with 10 minute ban
- epel-release
- nmap
- fail2ban
- docker-engine
- docker-compose