162 lines
4.4 KiB
Plaintext
162 lines
4.4 KiB
Plaintext
# - Configuration file for scrupts check_net.sh and netconfig.sh
|
|
# -
|
|
|
|
LOGGING_CONSOLE=false
|
|
DEBUG=false
|
|
|
|
# - Where are your scripts located?
|
|
# -
|
|
check_script=/usr/local/sbin/check_net.sh
|
|
netconfig_script=/usr/local/sbin/netconfig.sh
|
|
|
|
log_file=/var/log/check_net.log
|
|
|
|
# - If no inet device is online at startup, no ping address can be determined and further on
|
|
# - no online test is possible. So use this ip-address as backup ping address.
|
|
# -
|
|
BACKUP_PING_ADDR="8.8.8.8"
|
|
|
|
|
|
# - Put in your DSL devices (refers to your network configuration)
|
|
# - youe wish be congigured by that script
|
|
# -
|
|
# - Notice:
|
|
# - If not using multiple default gatways, declare the list in the order of your
|
|
# - preferred default gatway devices
|
|
# -
|
|
# - Example:
|
|
# - _INITIAL_DEVICE_LIST="eth0:192.168.63.254 ppp-light"
|
|
# - _INITIAL_DEVICE_LIST="eth11:172.16.12.254 eth10:172.16.13.254 eth9:172.16.11.254"
|
|
# -
|
|
_INITIAL_DEVICE_LIST=""
|
|
|
|
|
|
# - Set to "false" uses "0.0.0.0" as remote gateway instead of the real address
|
|
# -
|
|
USE_REMOTE_GATEWAY_ADDRESS=true
|
|
#USE_REMOTE_GATEWAY_ADDRESS=false
|
|
|
|
# - Set to false uses "0.0.0.0" as default gateway adress instaed of real remote address
|
|
# -
|
|
USE_DEFAULT_GW_ADDRESS=true
|
|
#USE_DEFAULT_GW_ADDRESS=false
|
|
|
|
|
|
# - Set up the default route to be a multipath route.
|
|
# -
|
|
# - This will balance the routes over all uplink providers (instead of
|
|
# - a prefered default route.
|
|
# -
|
|
# - Note:
|
|
# - that balancing will not be perfect, as it is route based, and routes
|
|
# - are cached. This means that routes to often-used sites will always be
|
|
# - over the same provider.
|
|
# -
|
|
# - !! At least within this script, multipath route only works as exspected
|
|
# - if all providers have a static uplink (and do not nat the uplink?)
|
|
# -
|
|
SET_MULTIPLE_DEFAULT_GW=false
|
|
#SET_MULTIPLE_DEFAULT_GW=true
|
|
|
|
# - MULTIPATH_DEVICE_WEIGHT
|
|
# -
|
|
# - This a weight for (inet) devices of a multipath route reflecting
|
|
# - its relative bandwidth or quality.
|
|
# -
|
|
# - The default value for weight of any device is '1'
|
|
# -
|
|
# - Example:
|
|
# - MULTIPATH_DEVICE_WEIGHT="eth9:2 eth10:1 eth11:4"
|
|
# -
|
|
MULTIPATH_DEVICE_WEIGHT="eth9:2 eth11:4"
|
|
|
|
|
|
# - Hostnames for ping test
|
|
# -
|
|
# - Note: The first two reachable hosts will be used for ping test.
|
|
# -
|
|
# - Space separated list
|
|
# -
|
|
PING_TEST_HOSTS="oopen.de google.com heise.de debian.org ubuntu.com"
|
|
|
|
|
|
admin_email=root
|
|
from_address="check-inet-devices@`hostname -f`"
|
|
company="CKUBU"
|
|
content_type='Content-Type: text/plain;\n charset="utf-8"'
|
|
|
|
|
|
# - rule_local_ips
|
|
# -
|
|
# - Add rule(s) for routing local ip-address(es) through a given extern interface
|
|
# -
|
|
# - Space separated list of entries '<ext-interface>:<local-ip>'
|
|
# - rule_local_ips="<ext-interface>:<local-ip> [<ext-interface>:<local-ip>] [.."
|
|
# -
|
|
# - Example:
|
|
# - ========
|
|
# - local ip 192.168.10.1 through extern interface eth10 and
|
|
# - local ip 192.168.10.13 through extern interface ppp-surf1
|
|
# - rule_local_ips="eth10:192.168.10.1 ppp-surf1:192.168.10.13"
|
|
# -
|
|
rule_local_ips=""
|
|
|
|
# - rule_remote_ips
|
|
# -
|
|
# - Add rule(s) for routing remote ip-address(es) through a given extern interface
|
|
# -
|
|
# - Space separated list of entries '<ext-interface>:<remote-ip>'
|
|
# - rule_remote_ips="<ext-interface>:<remote-ip> [<ext-interface>:<remote-ip>] [.."
|
|
# -
|
|
# - Example:
|
|
# - ========
|
|
# - route remote ip-address 141.1.1.1 through extern interface ppp-ckubu and
|
|
# - also route ip-address 8.8.8.8 through through extern interface ppp-ckubu
|
|
# - rule_remote_ips="ppp-ckubu:141.1.1.1 ppp-ckubu:8.8.8.8"
|
|
# -
|
|
rule_remote_ips=""
|
|
|
|
# - rule_local_nets
|
|
# -
|
|
# - Add rule(s) for routing local networks through a given extern interface out
|
|
# -
|
|
# - Space separated list of entries '<extern-interface>:<local-net>'
|
|
# - rule_local_nets="<extern-interface>:<local-net> [<extern-interface>:<local-net>] [.."
|
|
# -
|
|
# -
|
|
# - Example:
|
|
# - ========
|
|
# - rule_local_nets="ppp-st:192.168.11.0/25 ppp-surf1:192.168.11.128/25"
|
|
# -
|
|
rule_local_nets=""
|
|
|
|
|
|
|
|
## ====================================
|
|
## - Don't make changes after this Line
|
|
## ====================================
|
|
|
|
# ---
|
|
# - Add rule(s) for routing local ip-address(es)
|
|
# ---
|
|
declare -a rule_local_ip_arr
|
|
for _str in $rule_local_ips ; do
|
|
rule_local_ip_arr+=("$_str")
|
|
done
|
|
|
|
# ---
|
|
# - Add rule(s) for routing remote ip-address(es)
|
|
# ---
|
|
declare -a rule_remote_ip_arr
|
|
for _str in $rule_remote_ips ; do
|
|
rule_remote_ip_arr+=("$_str")
|
|
done
|
|
|
|
# ---
|
|
# - Add rule(s) for routing local networks
|
|
# ---
|
|
declare -a rule_local_net_arr
|
|
for _str in $rule_local_nets ; do
|
|
rule_local_net_arr+=("$_str")
|
|
done
|