Compare commits
No commits in common. "edeb72ddf155f44ebe9ecc27e5b8771d308c9e69" and "19e8403f32a80a79d1392b23daafacb0700aaff3" have entirely different histories.
edeb72ddf1
...
19e8403f32
1 changed files with 6 additions and 18 deletions
|
@ -9,19 +9,19 @@
|
|||
# Consequences
|
||||
# - do not provide IPv4 or IPv6 dhcp/ra on any interface
|
||||
|
||||
if [ $# -lt 8 ] ; then
|
||||
echo $0 "address hostname nat64prefix ipv4address ipv4gw asn routerid babelpw iBGPpeer1 [iBGPpeer2...]"
|
||||
if [ $# -lt 7 ] ; then
|
||||
echo $0 "address hostname nat64prefix nat64route ipv4address ipv4gw asn routerid 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 + tcpdump
|
||||
opkg install jool-tools-netfilter bird2 bird2c tcpdump tmux
|
||||
# add jool + bird2
|
||||
opkg install jool-tools-netfilter bird2 bird2c
|
||||
|
||||
# Do not announce ULA - we have GUA
|
||||
uci delete network.globals.ula_prefix
|
||||
|
@ -73,21 +73,9 @@ 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 ${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 ]; };
|
||||
route ${nat64route} unreachable;
|
||||
}
|
||||
BBB
|
||||
|
||||
|
|
Loading…
Reference in a new issue