summaryrefslogtreecommitdiffstats
path: root/fw.globals
blob: fea67f8c0be1d5075d0e5b36ade25db8f1f4b0bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set -o allexport

# interfaces:
IF_WAN="wan0"
IF_LAN="eth1"

# networks:
NET_LAN="10.24.0.0/16"
NET_WAN="192.168.0.0/24"
NET_AR="10.24.20.0/24"
NET_Q3K="10.24.16.0/24"

NET_AR_DESKTOP="10.30.24.0/24"

# hosts:
#NAS
HOST_AMANOJAKU="10.24.20.250"
#ROUTER
HOST_KASHA="10.24.0.1"
HOST_KASHA_WAN="192.168.0.11"
HOST_KASHA_WAN2="$(ip -4 a s dev ${IF_WAN} | awk '$1 == "inet" && $2 != "192.168.0.11/24" { print $2; exit }')"
# will allow us to do things like: if ${HAVE_WAN2}; then ...
if [[ ! -z "${HOST_KASHA_WAN2}" ]]; then
    HAVE_WAN2="/bin/true"
    HOST_KASHA_WAN2="${HOST_KASHA_WAN2%/*}"
else
    HAVE_WAN2="/bin/false"
fi
#AP
HOST_HYPERION="10.24.0.254"

set +o allexport