Linux System Administration (RedHat)

Topics

Up2date - Yum Updates - Yum From Source Code - Upgrade W2K FC2 to WinXP FC2 - Upgrade Linux - General Configuration - Mount UVA's home directory - ITC Tape Backup Logs - RPM Cleanup - Make more swap - Add quotas to a Volume - Set up a FTP Server - KDE Desktop Config - NIS Info - ICMP Errors - Sendmail Permissions - Boot disk - CISCO card - NFS Info - Backup Strategy - Legacy RPM's Mirror a distribution Use rsync and ssh-keygen for backup Iptables Use

IPTABLES


Add a new rule with the command

iptables -I RH-Firewall-1-Input -p udp -m udp --dport 514 -s curie.seas.virginia.edu -j ACCEPT

this will allow remote syslogging from curie.seas

service iptables save

This will save all the iptables rules to /etc/sysconfig/iptables



Setup Remote Syslog


On the receiver machine
-----------------------

* Edit /etc/sysconfig/syslog

so the syslog parameters are "-m 0 -r -x"
and restart syslog with "service syslog restart"

* Add a iptables entry to block upd packets from port 514 except from
machines that are logging to the receiver

On the logging machine
----------------------

Edit /etc/hosts and put the receiver machine

Edit /etc/syslog/conf and pick a type of log entry that will
be logged remotely and add it.  Use ONLY tabs for white space. Ex-

local6.err    @curie.seas.virginia.edu
 
* Restart syslog with "service syslog restart"