From 48706695b662ca88302d3dd69564c73ca3e633ed Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 30 Aug 2012 14:25:51 -0700 Subject: [PATCH] Make the SNMP bi-directional with traps allowed in the reverse direction Signed-off-by: Tom Eastep --- Shorewall/Macros/macro.SNMP | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Shorewall/Macros/macro.SNMP b/Shorewall/Macros/macro.SNMP index bbc906fbc..ecbeb9ec3 100644 --- a/Shorewall/Macros/macro.SNMP +++ b/Shorewall/Macros/macro.SNMP @@ -5,6 +5,8 @@ # # This macro handles SNMP traffic (including traps). # +# Note that traps are passed from DEST to SOURCE. +# ############################################################################### FORMAT 2 #ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/ @@ -12,9 +14,8 @@ FORMAT 2 ?if ( __CT_TARGET && ! $AUTOHELPERS && __SNMP_HELPER ) PARAM - - udp 161 ; helper=snmp - PARAM - - udp 162 ?else - PARAM - - udp 161:162 + PARAM - - udp 161 ?endif -PARAM - - tcp 161 +PARAM DEST SOURCE tcp 162