Break SNMP Macro into two macros

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-08-31 06:53:05 -07:00
parent 053797a85e
commit 1119d64b29
2 changed files with 14 additions and 4 deletions

View File

@ -3,9 +3,9 @@
#
# /usr/share/shorewall/macro.SNMP
#
# This macro handles SNMP traffic (including traps).
# This macro handles SNMP traffic.
#
# Note that traps are passed from DEST to SOURCE.
# Note: To allow SNMP Traps, use the SNMPTrap macro
#
###############################################################################
FORMAT 2
@ -17,5 +17,3 @@ FORMAT 2
?else
PARAM - - udp 161
?endif
PARAM DEST SOURCE tcp 162

View File

@ -0,0 +1,12 @@
#
# Shorewall version 4 - SNMP Trap Macro
#
# /usr/share/shorewall/macro.SNMP
#
# This macro handles SNMP traps.
#
###############################################################################
FORMAT 2
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
# PORT(S) PORT(S) LIMIT GROUP
PARAM - - udp 162