[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
|
||||
# - 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 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
|
||||
|
@ -30,8 +29,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 +72,10 @@ cat > /etc/bird.conf <<BBB
|
|||
log syslog all;
|
||||
router id ${routerid};
|
||||
|
||||
# Just announce, no kernel interaction
|
||||
protocol static static6 {
|
||||
ipv6;
|
||||
route ${nat64route} unreachable;
|
||||
route ${nat64prefix} unreachable;
|
||||
}
|
||||
BBB
|
||||
|
||||
|
|
Loading…
Reference in a new issue