-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings
53 lines (45 loc) · 2.34 KB
/
settings
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file is sourced by all shell scripts
if [ -r "/etc/westnetz2.settings" ]; then
. /etc/westnetz2.settings
return
fi
export PYTHON=python2
export MAIN_DEVICE=eth-int # The device which is the stick to our switch that carries all VLANs
export UPLINK_DEVICE=eth-ext
export UPLINK_VLAN=1998 # The vlan which is used for the uplink
export BW_UPLOAD=28Mbit
export BW_DOWNLOAD=38Mbit
export RTR_PUBLIC_UPLINK=vlan-uplink
export RTR_PUBLIC_CGN_DOWNLINK=veth-priv
export RTR_PUBLIC_TRUNK=veth-br
export RTR_PUBLIC_LOOPBACK_IPV4="85.239.127.193 146.0.105.65"
export RTR_PUBLIC_LOOPBACK_IPV6="2a02:238:f02a:ffff:1::"
export RTR_PUBLIC_OWN_NETS_V4="85.239.127.192/26 146.0.105.64/26"
export RTR_PUBLIC_OWN_NETS_V6="2a02:238:f02a::/48"
export RTR_PUBLIC_UPLINK_ONLINK_IPV4="" #"85.239.127.254 146.0.105.126"
export RTR_PUBLIC_UPLINK_ONLINK_IPV6="" #"2a02:238:1:f02a::1"
export RTR_PUBLIC_UPLINK_GW_IPV4="146.0.105.126"
export RTR_PUBLIC_UPLINK_GW_IPV6="2a02:238:1:f02a::1"
export RTR_PUBLIC_UPLINK_PROXY_IPV6="" #"2a02:238:1:f02a::2"
export RTR_PUBLIC_UPLINK_PROXY_IPV4="" #"$(for i in $(seq 65 125); do echo 146.0.105.$i; done; for i in $(seq 193 253); do echo 85.239.127.$i; done)"
export RTR_PUBLIC_UPLINK_OWN_IPV4="146.0.105.125/30"
export RTR_PUBLIC_UPLINK_OWN_IPV6="2a02:238:1:f02a::2/64"
export RTR_PUBLIC_IPV6_IF_TEMPLATE="2a02:238:f02a:ffff:1:%d::/128"
export RTR_PRIVATE_UPLINK=veth-pub # The name of the device presented to CGN router for its uplink
export RTR_PRIVATE_GATEWAY=146.0.105.65
export RTR_PRIVATE_LOOPBACK=146.0.105.112
export RTR_PRIVATE_TRUNK=veth-br # The name of the device presented to CGN router as a trunk
export RTR_PRIVATE_NAT_FIRST=146.0.105.112
export RTR_PRIVATE_NAT_LAST=146.0.105.119
export RTR_PRIVATE_NAT_ALL="$(for i in $(seq 112 119); do echo 146.0.105.$i; done)"
export RTR_PRIVATE_OWN_NETS="172.19.0.0/16"
export DHCP_DOMAIN_NAME=westnetz.org
export DHCP_DNS_SERVERS="146.0.105.122"
export NAT_EXTERNAL=no
export NAT_DEVICE=veth-nat
export NAT_VLAN_PUB=1995 # Vlan for pub side of CGN
export NAT_VLAN_PRIV=1996 # Vlan for priv side of CGN
export NAT_PUB_CGN_OWN="100.100.100.1/30" # IP for transfer from pub-router to cgn
export NAT_PUB_CGN_CGN="100.100.100.2" # IP of cgn in transfer net
export NAT_PRIV_CGN_OWN="100.100.100.6/30" # IP for transfer to priv-router from cgn
export NAT_PRIV_CGN_CGN="100.100.100.5" # IP of cgn in transfer net