openwrt/nat64: begin to introduce iBGP syntax
This commit is contained in:
parent
437fc066f7
commit
efb9b1ca0d
1 changed files with 10 additions and 5 deletions
|
@ -8,19 +8,24 @@
|
|||
# Consequences
|
||||
# - do not provide IPv4 or IPv6 dhcp/ra on any interface
|
||||
|
||||
if [ $# -ne 3 ] ; then
|
||||
echo $0 address hostname nat64prefix
|
||||
if [ $# -lt 4 ] ; then
|
||||
echo $0 "address hostname nat64prefix asn iBGPpeer1 [iBGPpeer2...]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
address=$1; shift
|
||||
hostname=$1; shift
|
||||
nat64=$1; shift
|
||||
asn=$1; shift
|
||||
|
||||
# Now $@ only contains iBGP peers
|
||||
|
||||
cat <<EOF | ssh -t "root@${address}"
|
||||
set -x
|
||||
opkg update
|
||||
opkg install kmod-jool jool-tools
|
||||
|
||||
# add jool + bird2
|
||||
opkg install jool-tools-netfilter bird2
|
||||
|
||||
# Do not announce ULA - we have GUA
|
||||
uci delete network.globals.ula_prefix
|
||||
|
@ -28,11 +33,11 @@ uci delete network.globals.ula_prefix
|
|||
# Set hostname
|
||||
uci set system.@system[0].hostname="${hostname}"
|
||||
|
||||
# add jool
|
||||
|
||||
# Do something wireless (?)
|
||||
# disable?
|
||||
|
||||
echo "Setting up ibgp for $@ .."
|
||||
|
||||
uci commit
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue