Make the SNMP bi-directional with traps allowed in the reverse direction

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-08-30 14:25:51 -07:00
parent d838cf41bf
commit 48706695b6

View File

@ -5,6 +5,8 @@
# #
# This macro handles SNMP traffic (including traps). # This macro handles SNMP traffic (including traps).
# #
# Note that traps are passed from DEST to SOURCE.
#
############################################################################### ###############################################################################
FORMAT 2 FORMAT 2
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/ #ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
@ -12,9 +14,8 @@ FORMAT 2
?if ( __CT_TARGET && ! $AUTOHELPERS && __SNMP_HELPER ) ?if ( __CT_TARGET && ! $AUTOHELPERS && __SNMP_HELPER )
PARAM - - udp 161 ; helper=snmp PARAM - - udp 161 ; helper=snmp
PARAM - - udp 162
?else ?else
PARAM - - udp 161:162 PARAM - - udp 161
?endif ?endif
PARAM - - tcp 161 PARAM DEST SOURCE tcp 162