2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2010 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
22 # Set gettext text domain.
25 LOG_DIR
=/var
/log
/network
28 RED_RUN
=${RUN_DIR}/red
29 PPP_SECRETS
=/etc
/ppp
/secrets
31 # Network directory configuration.
32 NETWORK_CONFIG_DIR
="/etc/network"
33 NETWORK_ZONE_DIR
="${NETWORK_CONFIG_DIR}"
34 NETWORK_HOOKS_DIR
=/usr
/lib
/network
/hooks
36 # Network file configuration.
37 NETWORK_CONFIG_FILE
=${NETWORK_CONFIG_DIR}/config
38 NETWORK_CONFIG_FILE_PARAMS
="DEBUG"
39 CONFIG_HOSTNAME
="/etc/hostname"
41 RED_DB_DIR
=${RUN_DIR}/red
42 ROUTING_DB_DIR
=${RUN_DIR}/routing
44 DB_CONNECTION_FILE
="${LOG_DIR}/connections.db"
60 STATUS_TEXT
[${STATUS_UP}]="UP"
61 STATUS_TEXT
[${STATUS_DOWN}]="DOWN"
62 STATUS_TEXT
[${STATUS_NOCARRIER}]="NO CARRIER"
64 STATUS_COLOUR
[${STATUS_UP}]=${COLOUR_GREEN}
65 STATUS_COLOUR
[${STATUS_DOWN}]=${COLOUR_RED}
66 STATUS_COLOUR
[${STATUS_NOCARRIER}]=${COLOUR_YELLOW}
70 DISCOVER_NOT_SUPPORTED
=2
72 # The user is able to create zones that begin
73 # with these names followed by a number.
76 VALID_ZONES
="${ZONE_LOCAL} ${ZONE_NONLOCAL}"
78 SYS_CLASS_NET
="/sys/class/net"
83 DEVICE_PRINT_LINE1
=" %-24s %s\n"
86 PORT_PATTERN_ACCESSPOINT
="apN"
87 PORT_PATTERN_WIRELESS
="wN"
89 # This variable is used to point to a directory
90 # in which the iptables ruleset will be generated.
93 FIREWALL_CONFIG_DIR
="/etc/firewall"
94 FIREWALL_ZONES_DIR
="${FIREWALL_CONFIG_DIR}/zones"
95 FIREWALL_CONFIG_FILE
="${FIREWALL_CONFIG_DIR}/config"
96 FIREWALL_CONFIG_RULES
="${FIREWALL_CONFIG_DIR}/rules"
98 FIREWALL_MACROS_DIRS
="${FIREWALL_CONFIG_DIR}/macros /usr/share/firewall/macros"
100 FIREWALL_CONFIG_PARAMS
="FIREWALL_LOG_METHOD FIREWALL_NFLOG_THRESHOLD"
102 FIREWALL_LOG_METHOD
="nflog"
103 FIREWALL_NFLOG_THRESHOLD
=30