2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
# Shorewall version 4 - SANE Macro
|
|
|
|
#
|
|
|
|
# /usr/share/shorewall/macro.SANE
|
|
|
|
#
|
|
|
|
# This macro handles SANE network scanning.
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
|
|
|
# PORT(S) PORT(S) LIMIT GROUP
|
2012-08-09 16:36:04 +02:00
|
|
|
|
|
|
|
?IF ( __CT_TARGET && $HELPERS && __SANE_HELPER )
|
|
|
|
PARAM - - tcp 6566 ; helper=sane
|
|
|
|
?ELSE
|
|
|
|
PARAM - - tcp 6566
|
|
|
|
?ENDIF
|
|
|
|
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
# Kernels 2.6.23+ has nf_conntrack_sane module which will handle
|
|
|
|
# sane data connection.
|
|
|
|
#
|
|
|
|
# If you don't have sane conntracking support you need to open whole dynamic
|
|
|
|
# port range.
|
|
|
|
#
|
|
|
|
# This is for normal linux 2.4+
|
|
|
|
#PARAM - - tcp 32768:61000
|
|
|
|
# This is generic rule for any os running saned.
|
|
|
|
#PARAM - - tcp 1024:
|