Compare commits
2 commits
19e8403f32
...
edeb72ddf1
Author | SHA1 | Date | |
---|---|---|---|
|
edeb72ddf1 | ||
|
a84ffc49e9 |
1 changed files with 18 additions and 6 deletions
|
@ -9,19 +9,19 @@
|
|||
# Consequences
|
||||
# - do not provide IPv4 or IPv6 dhcp/ra on any interface
|
||||
|
||||
if [ $# -lt 7 ] ; then
|
||||
echo $0 "address hostname nat64prefix nat64route ipv4address ipv4gw asn routerid iBGPpeer1 [iBGPpeer2...]"
|
||||
if [ $# -lt 8 ] ; then
|
||||
echo $0 "address hostname nat64prefix ipv4address ipv4gw asn routerid babelpw iBGPpeer1 [iBGPpeer2...]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
address=$1; shift
|
||||
hostname=$1; shift
|
||||
nat64prefix=$1; shift
|
||||
nat64route=$1; shift
|
||||
ipv4address=$1; shift
|
||||
ipv4gw=$1; shift
|
||||
asn=$1; shift
|
||||
routerid=$1; shift
|
||||
babelpw=$1; shift
|
||||
ibgp_peers="$@"
|
||||
|
||||
# Now $@ only contains iBGP peers
|
||||
|
@ -30,8 +30,8 @@ cat <<EOF | ssh -t "root@${address}"
|
|||
set -x
|
||||
opkg update
|
||||
|
||||
# add jool + bird2
|
||||
opkg install jool-tools-netfilter bird2 bird2c
|
||||
# add jool + bird2 + tcpdump
|
||||
opkg install jool-tools-netfilter bird2 bird2c tcpdump tmux
|
||||
|
||||
# Do not announce ULA - we have GUA
|
||||
uci delete network.globals.ula_prefix
|
||||
|
@ -73,9 +73,21 @@ cat > /etc/bird.conf <<BBB
|
|||
log syslog all;
|
||||
router id ${routerid};
|
||||
|
||||
protocol device { }
|
||||
protocol bfd { }
|
||||
|
||||
# Just announce, no kernel interaction
|
||||
protocol static static6 {
|
||||
ipv6;
|
||||
route ${nat64route} unreachable;
|
||||
route ${nat64prefix} unreachable;
|
||||
}
|
||||
# for getting iBGP routes
|
||||
protocol babel {
|
||||
interface "br-lan", "wan" { type wired; authentication mac; password "${babelpw}"; };
|
||||
ipv6 { export where (source = RTS_DEVICE) || (source = RTS_BABEL); };
|
||||
}
|
||||
protocol kernel kernel_v6 {
|
||||
ipv6 { export export where source ~ [ RTS_BABEL ]; };
|
||||
}
|
||||
BBB
|
||||
|
||||
|
|
Loading…
Reference in a new issue