]> git.ipfire.org Git - network.git/commitdiff
Move firewall default configuration to an extra file.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Aug 2012 18:25:55 +0000 (18:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Aug 2012 18:25:55 +0000 (18:25 +0000)
functions.constants
functions.constants-firewall [new file with mode: 0644]

index fb847000eda0d79c89d0a3c58913421575c8ddce..2cb11452f4a683cbcd3fff1dd80854516eccfc34 100644 (file)
@@ -85,20 +85,3 @@ DEVICE_PRINT_LINE1="    %-24s %s\n"
 PORT_PATTERN="pN"
 PORT_PATTERN_ACCESSPOINT="apN"
 PORT_PATTERN_WIRELESS="wN"
-
-# This variable is used to point to a directory
-# in which the iptables ruleset will be generated.
-IPTABLES_TMPDIR=
-
-FIREWALL_CONFIG_DIR="/etc/firewall"
-FIREWALL_ZONES_DIR="${FIREWALL_CONFIG_DIR}/zones"
-FIREWALL_CONFIG_FILE="${FIREWALL_CONFIG_DIR}/config"
-FIREWALL_CONFIG_RULES="${FIREWALL_CONFIG_DIR}/rules"
-
-FIREWALL_MACROS_DIRS="${FIREWALL_CONFIG_DIR}/macros /usr/share/firewall/macros"
-
-FIREWALL_CONFIG_PARAMS="FIREWALL_LOG_METHOD FIREWALL_NFLOG_THRESHOLD FIREWALL_CLAMP_PATH_MTU"
-
-FIREWALL_LOG_METHOD="nflog"
-FIREWALL_NFLOG_THRESHOLD=30
-FIREWALL_CLAMP_PATH_MTU="false"
diff --git a/functions.constants-firewall b/functions.constants-firewall
new file mode 100644 (file)
index 0000000..1292429
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/bash
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2012  IPFire Network Development Team                         #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+# This variable is used to point to a directory
+# in which the iptables ruleset will be generated.
+IPTABLES_TMPDIR=
+
+FIREWALL_CONFIG_DIR="/etc/firewall"
+FIREWALL_ZONES_DIR="${FIREWALL_CONFIG_DIR}/zones"
+FIREWALL_CONFIG_FILE="${FIREWALL_CONFIG_DIR}/config"
+FIREWALL_CONFIG_RULES="${FIREWALL_CONFIG_DIR}/rules"
+
+FIREWALL_MACROS_DIRS="${FIREWALL_CONFIG_DIR}/macros"
+FIREWALL_MACROS_DIRS="${FIREWALL_MACROS_DIRS} /usr/share/firewall/macros"
+
+# List of parameters which are saved in the configuration file.
+FIREWALL_CONFIG_PARAMS=""
+
+# Define the default logging method (nflog or syslog).
+FIREWALL_LOG_METHOD="nflog"
+FIREWALL_CONFIG_PARAMS="${FIREWALL_CONFIG_PARAMS} FIREWALL_LOG_METHOD"
+
+# Set the default threshold for the nflog method.
+FIREWALL_NFLOG_THRESHOLD=30
+FIREWALL_CONFIG_PARAMS="${FIREWALL_CONFIG_PARAMS} FIREWALL_NFLOG_THREASHOLD"
+
+# Enable clamping MSS for braindead ISPs which filter ICMP packets.
+FIREWALL_CLAMP_PATH_MTU="false"
+FIREWALL_CONFIG_PARAMS="${FIREWALL_CONFIG_PARAMS} FIREWALL_CLAMP_PATH_MTU"