++doc ++helper scripts

This commit is contained in:
Nico Schottelius 2019-08-16 12:23:35 +02:00
commit b50c46970f
8 changed files with 90 additions and 61 deletions

18
bin/benchmark-prepare-jool.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
set -x
sudo /etc/init.d/tayga stop
sudo sysctl -w net.ipv4.conf.all.forwarding=1
sudo sysctl -w net.ipv6.conf.all.forwarding=1
sudo modprobe jool_siit
sudo jool_siit instance add "example" --iptables
sudo jool_siit -i example eamt add 2001:db8:42::/120 10.0.1.0/24
sudo ip6tables -t mangle -A PREROUTING -s 2001:db8:42::/120 -d 2001:db8:23::/120 -j JOOL_SIIT --instance example
sudo iptables -t mangle -A PREROUTING -s 10.0.0.0/24 -d 10.0.1.0/24 -j JOOL_SIIT --instance example
sudo ip addr add 2001:db8:42::77/64 dev eth2
sudo ip link set eth2 up
sudo ip addr add 10.0.0.77/24 dev eth1
sudo ip l s eth1 up

View file

@ -0,0 +1,7 @@
#!/bin/sh
set -x
# Required for NAT64 going into the other side
sudo ip route add 10.0.1.0/24 via 10.0.0.77
sudo ip route add 2001:db8:23::/96 via 2001:db8:42::77