From 54190bd228bbb49006243d93d29684dffdd955be Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 19 Dec 2004 19:30:21 +0000 Subject: [PATCH] Add OPENVPNPORT option git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1840 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- LrpN/etc/shorewall/shorewall.conf | 14 ++++++++++++-- Shorewall2/changelog.txt | 2 ++ Shorewall2/firewall | 3 ++- Shorewall2/releasenotes.txt | 9 ++++++++- Shorewall2/shorewall.conf | 11 +++++++++++ 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/LrpN/etc/shorewall/shorewall.conf b/LrpN/etc/shorewall/shorewall.conf index a5830e754..733e67c21 100755 --- a/LrpN/etc/shorewall/shorewall.conf +++ b/LrpN/etc/shorewall/shorewall.conf @@ -1,5 +1,4 @@ -############################################################################## -# /etc/shorewall/shorewall.conf V2.1 - Change the following variables to +/shorewall/shorewall.conf V2.1 - Change the following variables to # match your setup # # This program is under GPL [http://www.gnu.org/copyleft/gpl.htm] @@ -732,6 +731,17 @@ PKTTYPE=Yes # DROPINVALID=Yes is assumed. DROPINVALID=No + +# +# OpenVPN Default Port +# +# Open VPN has recenly received a registered port (1194) from the IANA. This +# will be the default port in future versions of OpenVPN. In order to maintain +# compatibility with previous Shorewall versions, if OPENVPNPORT is not +# specified, then the default port will be 5000. + +OPENVPNPORT=1194 + ################################################################################ # P A C K E T D I S P O S I T I O N ################################################################################ diff --git a/Shorewall2/changelog.txt b/Shorewall2/changelog.txt index 5717de2ac..bbd14c125 100644 --- a/Shorewall2/changelog.txt +++ b/Shorewall2/changelog.txt @@ -186,3 +186,5 @@ Changes since 2.0.3 91) Simplify the absurdly over-engineered code that restores the dynamic chain. + +92) Add OPENVPNPORT option. diff --git a/Shorewall2/firewall b/Shorewall2/firewall index 1aef6c7c7..b13e86945 100755 --- a/Shorewall2/firewall +++ b/Shorewall2/firewall @@ -1655,7 +1655,7 @@ setup_tunnels() # $1 = name of tunnels file setup_one_openvpn() # $1 = gateway, $2 = kind[:port] { local protocol=udp - local p=5000 + local p=${OPENVPNPORT:-5000} case $2 in *:*:*) @@ -7122,6 +7122,7 @@ do_initialize() { LOGTAGONLY= LOGALLNEW= DROPINVALID= + OPENVPNPORT= RESTOREBASE= TMP_DIR= diff --git a/Shorewall2/releasenotes.txt b/Shorewall2/releasenotes.txt index ae70bed58..af2d0f38c 100755 --- a/Shorewall2/releasenotes.txt +++ b/Shorewall2/releasenotes.txt @@ -1,4 +1,4 @@ -Shorewall 2.2.0-RC1 +Shorewall 2.2.0-RC2 ---------------------------------------------------------------------- Problems Corrected since 2.0.3 @@ -853,3 +853,10 @@ New Features: gateway and each network listed in the NETWORKS setting at the front of the script, only one of these may be used at a time. +39) The IANA has recently registered port 1194 for use by OpenVPN. In + previous versions of Shorewall (and OpenVPN), the default port was + 5000. To deal with this change of default, the OPENVPNPORT option + has been added to shorewall.conf. If this option is not set then + the OpenVPN port will continue to default to 5000. Otherwise, it + will default to the value of this option (which is set to 1194 in + the released shorewall.conf file). diff --git a/Shorewall2/shorewall.conf b/Shorewall2/shorewall.conf index e0610ad90..ca563ecbc 100755 --- a/Shorewall2/shorewall.conf +++ b/Shorewall2/shorewall.conf @@ -737,6 +737,17 @@ PKTTYPE=Yes # DROPINVALID=Yes is assumed. DROPINVALID=No + +# +# OpenVPN Default Port +# +# Open VPN has recenly received a registered port (1194) from the IANA. This +# will be the default port in future versions of OpenVPN. In order to maintain +# compatibility with previous Shorewall versions, if OPENVPNPORT is not +# specified, then the default port will be 5000. + +OPENVPNPORT=1194 + ################################################################################ # P A C K E T D I S P O S I T I O N ################################################################################