2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
# Shorewall version 4 - SMB Bi-directional Macro
|
|
|
|
#
|
|
|
|
# /usr/share/shorewall/macro.SMBBI
|
|
|
|
#
|
|
|
|
# This macro (bidirectional) handles Microsoft SMB traffic.
|
|
|
|
#
|
|
|
|
# Beware! This macro opens a lot of ports, and could possibly be used
|
|
|
|
# to compromise your firewall if not used with care. You should only
|
|
|
|
# allow SMB traffic between hosts you fully trust.
|
|
|
|
#
|
|
|
|
###############################################################################
|
2012-08-09 19:32:34 +02:00
|
|
|
FORMAT 2
|
2008-12-07 19:17:26 +01:00
|
|
|
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
|
|
|
# PORT(S) PORT(S) LIMIT GROUP
|
|
|
|
PARAM - - udp 135,445
|
2012-08-09 16:36:04 +02:00
|
|
|
|
2012-08-12 16:25:11 +02:00
|
|
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __NETBIOS_NS_HELPER )
|
2012-08-09 16:36:04 +02:00
|
|
|
PARAM - - udp 137 ; helper=netbios-ns
|
|
|
|
PARAM - - udp 138:139
|
2012-08-12 16:25:11 +02:00
|
|
|
?else
|
2012-08-09 16:36:04 +02:00
|
|
|
PARAM - - udp 137:139
|
2012-08-12 16:25:11 +02:00
|
|
|
?endif
|
2012-08-09 16:36:04 +02:00
|
|
|
|
2008-12-07 19:17:26 +01:00
|
|
|
PARAM - - udp 1024: 137
|
|
|
|
PARAM - - tcp 135,139,445
|
|
|
|
PARAM DEST SOURCE udp 135,445
|
2012-08-09 16:36:04 +02:00
|
|
|
|
2012-08-12 16:25:11 +02:00
|
|
|
?if ( __CT_TARGET && ! $AUTOHELPERS && __NETBIOS_NS_HELPER )
|
2012-08-09 16:36:04 +02:00
|
|
|
PARAM DEST SOURCE udp 137 ; helper=netbios-ns
|
|
|
|
PARAM DEST SOURCE udp 138:139
|
2012-08-12 16:25:11 +02:00
|
|
|
?else
|
2012-08-09 16:36:04 +02:00
|
|
|
PARAM DEST SOURCE udp 137:139
|
2012-08-12 16:25:11 +02:00
|
|
|
?endif
|
2012-08-09 16:36:04 +02:00
|
|
|
|
2008-12-07 19:17:26 +01:00
|
|
|
PARAM DEST SOURCE udp 1024: 137
|
|
|
|
PARAM DEST SOURCE tcp 135,139,445
|