ServerSetupFedora22: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
# Install fail2ban
# Install fail2ban
# yum remove unneeded software
# yum remove unneeded software
# yum update<br><br>
# yum update
# Enable SElinux<br><br>
 
# Configure GRUB serial console redirection
# Configure GRUB serial console redirection
# Configure kdump for system panics
# Configure kdump for system panics
Line 18: Line 20:
# Configure syslog for network client writes
# Configure syslog for network client writes
## Add UDP 514 to IPTables<br><br>
## Add UDP 514 to IPTables<br><br>
# Mount raid array
# Mount raid array
# Configure md alerts
# Configure md alerts
Line 40: Line 43:
# Configure logwatch
# Configure logwatch
# Setup clamav virus protection for Samba and weekly scan<br><br>
# Setup clamav virus protection for Samba and weekly scan<br><br>
# Setup cron jobs
# Setup cron jobs
## Keep anacron from waking me up at night! # vi /etc/anacrontab // START_HOURS_RANGE<br><br>
## Keep anacron from waking me up at night! # vi /etc/anacrontab // START_HOURS_RANGE<br><br>
Line 52: Line 56:
# Configure webdav for tomboy notes / foxit marks
# Configure webdav for tomboy notes / foxit marks
# Configure mod_auth_pam for httpd authentication<br><br>
# Configure mod_auth_pam for httpd authentication<br><br>
# ^ 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 02:51, 24 July 2011

 # yum install man screen lm_sensors wget rsync fail2ban mailx sendmail-cf \
nut clamav clamav-update nfs-utils strace smartmontools logwatch etckeeper \
OpenIPMI ipmitool php-pecl-apc.x86_64
  1. Install etckeeper
  2. Disable root login via ssh
  3. Enable sudo
  4. Install fail2ban
  5. yum remove unneeded software
  6. yum update
  7. Enable SElinux

  1. Configure GRUB serial console redirection
  2. Configure kdump for system panics
    1. Append kernel grub.conf crashkernel=128M for F14
    2. /etc/sysctl.conf :: kernel.sysrq =1
  3. Configure NUT for UPS alerts
  4. Configure Time Server for local network access
    1. Add UDP 123 to IPTables
  5. Configure syslog for network client writes
    1. Add UDP 514 to IPTables

  1. Mount raid array
  2. Configure md alerts
  3. Enable NFS
    1. Add TCP 2049 to IPTables
    2. Disable NFSv2/3 /etc/sysconfig/nfs
    3. $ service rpcbind start ; chkconfig rpcbind on
    4. $ service nfslock start ; chkconfig nfslock on
    5. $ service nfs start ; chkconfig nfs on
  4. Enable samba
    1. Add TCP port 139/445 to IPTables
  5. Enable iSCSI
  6. ^ Configure bacula and web interface

  7. Setup mail relay
    1. $ echo drew > /root/.forward
    2. echo "andrew: drew" >> /etc/aliases; newaliases
    3. echo "root: drew" >> /etc/aliases; newaliases
    4. Remove 127.0.0.1 /etc/mail/sendmail.mc
    5. Add TCP port 25 to IPTables
  8. Configure smartd to monitor hard drives
  9. ^ Configure thermal alerts for server
  10. Configure logwatch
  11. Setup clamav virus protection for Samba and weekly scan

  1. Setup cron jobs
    1. Keep anacron from waking me up at night! # vi /etc/anacrontab // START_HOURS_RANGE

  2. ^ Configure Snort passive IDS
  3. ^ Transparent Proxy with Squid for bandwidth utilization tally

  4. Upload firmware for tv tuner card
  5. Setup mythtv
  6. Configure MythWeb
  7. Force http to https redirection
    1. Add TCP port 443 to IPTables
  8. Configure MediaWiki
  9. Configure webdav for tomboy notes / foxit marks
  10. Configure mod_auth_pam for httpd authentication

  1. ^ Verify all log files in /var/log are not giving any errors or notifications
  2. ^ Check logs for whats growing!
  • ls -alR /var/log | grep ^- | awk {'print $5" "$8'} | sort -k 2| sort -n