IPsec and UDP (SNMP)

D

David Gardiner

I've created an IPsec policy to only permit certain ports to be accessible on a Win2003 Server (actually a 2-node a/p cluster running SQL Server).

I'm trying to open up UDP port 161, which (I'm pretty sure) is what SNMP uses so that some monitoring software on another machine can connect to the SNMP service and retrieve status info.

This is the extract from the netsh script I use:

add filterlist name="SNMP"
add filter filterlist="SNMP" srcaddr=monitorserver dstaddr=Me protocol=UDP srcport=0 dstport=161 mirrored=yes description="jupiter<->Me UDP src Any, dst 161, Nagios uses SNMP to monitor SQL"
add rule name="SNMP" policy="Domain Member SQL Server" filterlist="SNMP" filteraction="PERMIT"

Trouble is, it seems to work for a minute or two, then IPsec starts blocking the packets - I've enabled the diagnostic logging, and there they are in the system event log.

I've experimented with adding the cluster IP as well as the node IP, but neither seems to make much difference.

Is there anything special about IPsec filtering and UDP that I should know about?

-dave
 
L

Louise Bowman [MSFT]

You may have an issue with the weighting of the filters that are applied,
i.e if you have serveral filters one of the others may be applied before
this one and is "overriding it"

In IPSec Moniter, check the list of Main Mode Specific filters for the
weights of the filters. The filters are applied in the order of largest to
smallest weights.


--
This posting is provided "AS IS" with no warranties, and confers no rights.
David Gardiner said:
I've created an IPsec policy to only permit certain ports to be accessible
on a Win2003 Server (actually a 2-node a/p cluster running SQL Server).
I'm trying to open up UDP port 161, which (I'm pretty sure) is what SNMP
uses so that some monitoring software on another machine can connect to the
SNMP service and retrieve status info.
This is the extract from the netsh script I use:

add filterlist name="SNMP"
add filter filterlist="SNMP" srcaddr=monitorserver dstaddr=Me protocol=UDP
srcport=0 dstport=161 mirrored=yes description="jupiter said:
add rule name="SNMP" policy="Domain Member SQL Server" filterlist="SNMP" filteraction="PERMIT"

Trouble is, it seems to work for a minute or two, then IPsec starts
blocking the packets - I've enabled the diagnostic logging, and there they
are in the system event log.
I've experimented with adding the cluster IP as well as the node IP, but
neither seems to make much difference.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top