ServerSetupFedora22: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
# Configure GRUB serial console redirection | # Configure GRUB serial console redirection | ||
# Configure kdump for system panics | # Configure kdump for system panics | ||
# Configure apcupsd for UPS alerts | # Configure apcupsd for UPS alerts | ||
# Configure Time Server for local network access | # Configure Time Server for local network access | ||
## Add | ## Add UDP123/24 to IPTables | ||
# Configure | # Configure rsyslog for network clients | ||
## Add | ## Add UDP514/24 to IPTables<br><br> | ||
# Mount raid array | # Mount raid array | ||
# Configure md alerts | # Configure md alerts | ||
# Enable NFS | # Enable NFS | ||
##Add | ##Add TCP2049/24 to IPTables | ||
##Disable NFSv2/3 /etc/sysconfig/nfs | ##Disable NFSv2/3 /etc/sysconfig/nfs | ||
# Enable samba | # Enable samba | ||
## Add | ## Add TCP139,445/24 to IPTables | ||
## # chkconfig smb on; chkconfig nmb on; | ## # chkconfig smb on; chkconfig nmb on; | ||
# Enable iSCSI | # Enable iSCSI | ||
## Add | ## Add TCP3260/24 | ||
# ^ Configure bacula and web interface<br><br> | # ^ Configure bacula and web interface<br><br> | ||
# Setup mail relay | # Setup mail relay | ||
Line 45: | Line 40: | ||
## echo "root: drew" >> /etc/aliases; newaliases | ## echo "root: drew" >> /etc/aliases; newaliases | ||
## Remove 127.0.0.1 /etc/mail/sendmail.mc | ## Remove 127.0.0.1 /etc/mail/sendmail.mc | ||
## Add | ## Add TCP25/0 to IPTables | ||
# Configure smartd | # Configure smartd/hddtemp for disk monitoring | ||
# ^ Configure thermal alerts for server | # ^ Configure thermal alerts for server | ||
# Configure logwatch | # Configure logwatch | ||
Line 52: | Line 47: | ||
# Setup cron jobs | # Setup cron jobs | ||
## Keep anacron from waking me up at night! # vi /etc/anacrontab // START_HOURS_RANGE< | ## Keep anacron from waking me up at night! <pre># vi /etc/anacrontab // START_HOURS_RANGE</pre> | ||
# Setup mythtv | # Setup mythtv | ||
# Configure MythWeb | # Configure MythWeb | ||
# Force http to https redirection | # Force http to https redirection | ||
## Add | ## Add TCP443/0 to IPTables | ||
# Configure | # Configure mod_auth_pam / mod_auth_shadow / pecl-php-apc / phpMyAdmin | ||
# Configure | # Configure DrewaWiki / WebDAV | ||
# ^ Verify all log files in /var/log are not giving any errors or notifications | # ^ Verify all log files in /var/log are not giving any errors or notifications | ||
# ^ Check logs for whats growing! | # ^ Check logs for whats growing! | ||
:* ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n | :* ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n |
Revision as of 23:54, 1 August 2011
# yum install man screen wget rsync fail2ban mailx fdupes sendmail-cf strace \ logwatch etckeeper OpenIPMI ipmitool sysstat mutt clamav clamav-update nfs-utils \ lm_sensors hddtemp apcupsd apcupsd-cgi smartmontools \ mod_auth_pam mod_auth_shadow php-pecl-apc # java-1.6.0-openjdk.x86_64 nss-mdns
- Install etckeeper
- Disable root login via ssh
- Enable sudo
- Install fail2ban
- yum remove unneeded software
- yum update
- Enable SElinux
- Extend days of sysstat logging
- Configure GRUB serial console redirection
- Configure kdump for system panics
- Configure apcupsd for UPS alerts
- Configure Time Server for local network access
- Add UDP123/24 to IPTables
- Configure rsyslog for network clients
- Add UDP514/24 to IPTables
- Add UDP514/24 to IPTables
- Mount raid array
- Configure md alerts
- Enable NFS
- Add TCP2049/24 to IPTables
- Disable NFSv2/3 /etc/sysconfig/nfs
- Enable samba
- Add TCP139,445/24 to IPTables
- # chkconfig smb on; chkconfig nmb on;
- Enable iSCSI
- Add TCP3260/24
- ^ Configure bacula and web interface
- Setup mail relay
- $ echo drew > /root/.forward
- echo "andrew: drew" >> /etc/aliases; newaliases
- echo "root: drew" >> /etc/aliases; newaliases
- Remove 127.0.0.1 /etc/mail/sendmail.mc
- Add TCP25/0 to IPTables
- Configure smartd/hddtemp for disk monitoring
- ^ Configure thermal alerts for server
- Configure logwatch
- Setup clamav virus protection for Samba and weekly scan
- Setup cron jobs
- Keep anacron from waking me up at night!
# vi /etc/anacrontab // START_HOURS_RANGE
- Keep anacron from waking me up at night!
- Setup mythtv
- Configure MythWeb
- Force http to https redirection
- Add TCP443/0 to IPTables
- Configure mod_auth_pam / mod_auth_shadow / pecl-php-apc / phpMyAdmin
- Configure DrewaWiki / WebDAV
- ^ Verify all log files in /var/log are not giving any errors or notifications
- ^ Check logs for whats growing!
- ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n