Anyone have any ideas on how I can get the -j LOG action put the
results in /var/log/packets rather than as kernel in /var/log/messages?

Hi Mike!


A very simple example that you can later integrate to your firewall.
Watch out for the size of /var/log/packets:

# touch /var/log/packets
# echo "kern.debug    /var/log/packets" >> /etc/syslog.conf
# /etc/init.d/syslog restart

# /sbin/iptables -P INPUT ACCEPT
# /sbin/iptables -P OUTPUT ACCEPT
# /sbin/iptables -P FORWARD ACCEPT
# /sbin/iptables -F ; /sbin/iptables -X

# /sbin/iptables -A INPUT -j LOG --log-level DEBUG
# /usr/bin/tail -f /var/log/packets

Cheers!

Miguel




_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




--
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list

Reply via email to