[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LOG en iptables



Hola a todos,

he configurado un firewall con iptables y le he añadido algunas reglas para que me muestre el log de ellas, un ejemplo de una es la siguiente:

iptables -A FORWARD -d 192.168.x.y -p tcp --dport 25 -j LOG --log-level debug --log-prefix "IPTables_SMTP: "

he recompilado el kernel y le he añadido las opciones para el soporte de iptables, incluidas las de log.

He añadido en el fichero /etc/syslog.conf una linea como la siguiente:

*.=debug        -/var/log/ipt.log

He reiniciado la máquina para que me cogiese la nueva configuración del kernel y he conseguido que en el directorio /var/log se crease un fichero ipt.log en el que se muestran los mensajes con nivel debug pero no se me muestra nada de los mensajes que he añadido a mi script de iptables, lo único que se muestra es:

Aug 22 10:53:29 firewall kernel: request_module: failed /sbin/modprobe -- char-major-6-0. error = 65280
Aug 22 10:53:50 firewall kernel: request_module: failed /sbin/modprobe -- char-major-10-135. error = 65280
Aug 22 10:54:54 firewall kernel: CPU:     After generic identify, caps: 0387fbff 00000000 00000000 00000000
Aug 22 10:54:54 firewall kernel: CPU:     After vendor identify, caps: 0387fbff 00000000 00000000 00000000
Aug 22 10:54:54 firewall kernel: CPU:     After all inits, caps: 0383fbff 00000000 00000000 00000040
Aug 22 10:54:54 firewall kernel: pnp: the driver 'system' has been registered
Aug 22 10:54:54 firewall kernel: pnp: match found with the PnP device '00:07' and the driver 'system'
Aug 22 10:54:54 firewall kernel: pnp: match found with the PnP device '00:08' and the driver 'system'
Aug 22 10:54:54 firewall kernel: pnp: the driver 'serial' has been registered
Aug 22 10:54:54 firewall kernel: pnp: match found with the PnP device '00:0b' and the driver 'serial'
Aug 22 10:54:54 firewall kernel: pnp: match found with the PnP device '00:0e' and the driver 'serial'
Aug 22 10:54:54 firewall kernel: eth0:  Identified 8139 chip type 'RTL-8139C'
Aug 22 10:54:54 firewall kernel: eth1:  Identified 8139 chip type 'RTL-8100B/8139D'
Aug 22 10:54:54 firewall kernel: request_module: failed /sbin/modprobe -- char-major-10-135. error = 65280
Aug 22 10:54:54 firewall last message repeated 2 times
Aug 22 10:54:55 firewall kernel: request_module: failed /sbin/modprobe -- char-major-6-0. error = 65280

y mi problema es que no sé cómo cargar el módulo char-major-6-0. y cómo resolver el problema del char-major-10-135.  De este último buscando en google en una página( http://www.linuxfromscratch.org/faq/ ) me ponía que recompilase el kernel con la opción "Character devices" -> "Enhanced Real Time Clock Support".

Hice esto, pero sigo teniendo el mismo error.

Podríais ayudarme?  me gustaría poder tener un log de iptables.

Gracias


Reply to: