[openwrt/nat64] only use prefix, nt
This commit is contained in:
parent
19e8403f32
commit
a84ffc49e9
1 changed files with 6 additions and 6 deletions
|
@ -9,15 +9,14 @@
|
||||||
# Consequences
|
# Consequences
|
||||||
# - do not provide IPv4 or IPv6 dhcp/ra on any interface
|
# - do not provide IPv4 or IPv6 dhcp/ra on any interface
|
||||||
|
|
||||||
if [ $# -lt 7 ] ; then
|
if [ $# -lt 8 ] ; then
|
||||||
echo $0 "address hostname nat64prefix nat64route ipv4address ipv4gw asn routerid iBGPpeer1 [iBGPpeer2...]"
|
echo $0 "address hostname nat64prefix ipv4address ipv4gw asn routerid iBGPpeer1 [iBGPpeer2...]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
address=$1; shift
|
address=$1; shift
|
||||||
hostname=$1; shift
|
hostname=$1; shift
|
||||||
nat64prefix=$1; shift
|
nat64prefix=$1; shift
|
||||||
nat64route=$1; shift
|
|
||||||
ipv4address=$1; shift
|
ipv4address=$1; shift
|
||||||
ipv4gw=$1; shift
|
ipv4gw=$1; shift
|
||||||
asn=$1; shift
|
asn=$1; shift
|
||||||
|
@ -30,8 +29,8 @@ cat <<EOF | ssh -t "root@${address}"
|
||||||
set -x
|
set -x
|
||||||
opkg update
|
opkg update
|
||||||
|
|
||||||
# add jool + bird2
|
# add jool + bird2 + tcpdump
|
||||||
opkg install jool-tools-netfilter bird2 bird2c
|
opkg install jool-tools-netfilter bird2 bird2c tcpdump tmux
|
||||||
|
|
||||||
# Do not announce ULA - we have GUA
|
# Do not announce ULA - we have GUA
|
||||||
uci delete network.globals.ula_prefix
|
uci delete network.globals.ula_prefix
|
||||||
|
@ -73,9 +72,10 @@ cat > /etc/bird.conf <<BBB
|
||||||
log syslog all;
|
log syslog all;
|
||||||
router id ${routerid};
|
router id ${routerid};
|
||||||
|
|
||||||
|
# Just announce, no kernel interaction
|
||||||
protocol static static6 {
|
protocol static static6 {
|
||||||
ipv6;
|
ipv6;
|
||||||
route ${nat64route} unreachable;
|
route ${nat64prefix} unreachable;
|
||||||
}
|
}
|
||||||
BBB
|
BBB
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue