Revisar las reglas actuales de Firewall
iptables -L
Editar el script de reglas de firewall (En negrita lo que he añadido)
vi /etc/init.d/rcFirewall
set_snmp_access_rules()
{
# set snmpaccess permission
iptables -A INPUT -p udp -s IP_NAGIOS -d IP_SERVIDOR_IMSS--dport 161 -j ACCEPT
}
start()
{
echo -n "Applying firewall rules..."
get_network_info
set_basic_rules
set_exposed_fix_port_rules
set_web_access_rules
set_ssh_access_rules
set_postfix_access_rules
set_internal_access_rules
set_changeable_port_rules
set_snmp_access_rules
echo_success
echo
}
Volver a cargar las reglas de Firewall
/etc/init.d/rcFirewall restart
Mostrar las reglas actuales de Firewall
iptables -L
1 comentario:
Hello,
I want to query imms status from nagios. I have modified iptable in IMSVA 8.5 but what is the check_snmp command and OID to use to query (for example) the imms service status ??
Thanks a lot for your help.
Laurent.
Publicar un comentario