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
29 RED_RUN
=${RUN_DIR}/red
30 PPP_SECRETS
=/etc
/ppp
/secrets
32 # Network directory configuration.
33 NETWORK_CONFIG_DIR
="/etc/network"
34 NETWORK_DB_DIR
="${RUN_DIR}/db"
35 NETWORK_HOOKS_DIR
=/usr
/lib
/network
/hooks
36 NETWORK_HELPERS_DIR
=/usr
/lib
/network
/helpers
37 NETWORK_PORTS_DIR
="${NETWORK_CONFIG_DIR}/ports"
38 NETWORK_TRIGGERS_DIR
=/usr
/lib
/network
/triggers
39 NETWORK_ZONES_DIR
="${NETWORK_CONFIG_DIR}/zones"
40 NETWORK_SHARE_DIR
=/usr
/share
/network
41 NETWORK_CACHE_DIR
=/var
/cache
/network
43 NETWORK_IPSEC_CONNS_DIR
="${NETWORK_CONFIG_DIR}/vpn/ipsec/connections"
44 NETWORK_IPSEC_POOLS_DIR
="${NETWORK_CONFIG_DIR}/vpn/ipsec/pools"
45 NETWORK_IPSEC_SWANCTL_CONNECTIONS_DIR
="/etc/swanctl/connections"
46 NETWORK_IPSEC_SWANCTL_POOLS_DIR
="/etc/swanctl/pools"
49 WPA_SUPPLICANT_CONF_DIR
="/etc/wpa_supplicant"
51 # Network file configuration.
52 NETWORK_SETTINGS_FILE
=${NETWORK_CONFIG_DIR}/config
53 NETWORK_SETTINGS_FILE_PARAMS
="DEBUG"
54 NETWORK_WIRELESS_NETWORKS_DIR
="${NETWORK_CONFIG_DIR}/wireless/networks"
56 CA_BUNDLE
="/etc/pki/tls/certs/ca-bundle.crt"
57 CONFIG_HOSTNAME
="/etc/hostname"
59 RED_DB_DIR
=${RUN_DIR}/red
60 ROUTING_DB_DIR
=${RUN_DIR}/routing
62 DB_CONNECTION_FILE
="${LOG_DIR}/connections.db"
64 # (Static) route settings.
65 NETWORK_CONFIG_ROUTES
="${NETWORK_CONFIG_DIR}/routes"
66 NETWORK_CONFIG_ROUTES_PARAMS
="network gateway unreachable prohibit blackhole mtu"
74 EXIT_COMMAND_NOT_FOUND
=127
81 # Exit codes for IPv6 duplicate address detection (DAD)
92 DISCOVER_NOT_SUPPORTED
=2
97 # The user is able to create zones that begin
98 # with these names followed by a number.
101 VALID_ZONES
="${ZONE_LOCAL} ${ZONE_NONLOCAL}"
103 SYS_CLASS_NET
="/sys/class/net"
108 DEVICE_PRINT_LINE1
=" %-24s %s\n"
111 PORT_PATTERN_ACCESSPOINT
="apN"
112 PORT_PATTERN_MESH
="mN"
113 PORT_PATTERN_WIRELESS
="wN"
114 PORT_PATTERN_WIRELESS_ADHOC
="adhocN"
115 PORT_PATTERN_WIRELESS_MONITOR
="wmonN"