From a0cb89f355265c54ed61cb674e2bc7b814385258 Mon Sep 17 00:00:00 2001 From: "James E. Housley" Date: Wed, 12 Feb 2003 17:49:27 +0000 Subject: Add two more build options to limit the ports used by the client and server. PR: 47282 Submitted by: Douglas K. Rand --- misc/amanda-server/Makefile | 32 ++++++++++++++++++++++++++++++++ misc/amanda25-server/Makefile | 32 ++++++++++++++++++++++++++++++++ misc/amanda26-server/Makefile | 32 ++++++++++++++++++++++++++++++++ misc/amanda32-server/Makefile | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) (limited to 'misc') diff --git a/misc/amanda-server/Makefile b/misc/amanda-server/Makefile index 4b508511a65b..9286fc0b823f 100644 --- a/misc/amanda-server/Makefile +++ b/misc/amanda-server/Makefile @@ -48,6 +48,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" USE_PERL5= yes @@ -116,6 +124,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + # # Before 4.0, pre-CAM scsiio.h existed .if ${OSVERSION} < 400000 @@ -144,6 +160,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ @@ -192,6 +216,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + .endif .include diff --git a/misc/amanda25-server/Makefile b/misc/amanda25-server/Makefile index 4b508511a65b..9286fc0b823f 100644 --- a/misc/amanda25-server/Makefile +++ b/misc/amanda25-server/Makefile @@ -48,6 +48,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" USE_PERL5= yes @@ -116,6 +124,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + # # Before 4.0, pre-CAM scsiio.h existed .if ${OSVERSION} < 400000 @@ -144,6 +160,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ @@ -192,6 +216,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + .endif .include diff --git a/misc/amanda26-server/Makefile b/misc/amanda26-server/Makefile index 4b508511a65b..9286fc0b823f 100644 --- a/misc/amanda26-server/Makefile +++ b/misc/amanda26-server/Makefile @@ -48,6 +48,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" USE_PERL5= yes @@ -116,6 +124,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + # # Before 4.0, pre-CAM scsiio.h existed .if ${OSVERSION} < 400000 @@ -144,6 +160,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ @@ -192,6 +216,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + .endif .include diff --git a/misc/amanda32-server/Makefile b/misc/amanda32-server/Makefile index 4b508511a65b..9286fc0b823f 100644 --- a/misc/amanda32-server/Makefile +++ b/misc/amanda32-server/Makefile @@ -48,6 +48,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" USE_PERL5= yes @@ -116,6 +124,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + # # Before 4.0, pre-CAM scsiio.h existed .if ${OSVERSION} < 400000 @@ -144,6 +160,14 @@ pre-fetch: @${ECHO} " The default is operator" @${ECHO} " AMANDA_GROUP=group to specify the default group" @${ECHO} " The default is operator" + @${ECHO} " AMANDA_PORTRANGE=low,high to restrict Amanda to TCP ports" + @${ECHO} " between low and high when connecting from the server" + @${ECHO} " to the client for data, messages, and indexing." + @${ECHO} " The default is no restriction on TCP ports." + @${ECHO} " AMANDA_UDPPORTRANGE=low,high to restrict Amanda to UDP ports" + @${ECHO} " between low and high when connecting from the client" + @${ECHO} " to the server. Use ports below 1024." + @${ECHO} " The default is no restriction on UDP ports." @${ECHO} "" CONFIGURE_ARGS= --libexecdir=${PREFIX}/libexec/amanda \ @@ -192,6 +216,14 @@ CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP} CONFIGURE_ARGS+= --with-group=operator .endif +.if defined (AMANDA_UDPPORTRANGE) +CONFIGURE_ARGS+= --with-udpportrange=${AMANDA_UDPPORTRANGE} +.endif + +.if defined (AMANDA_PORTRANGE) +CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE} +.endif + .endif .include -- cgit v1.2.3