You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
622 B

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
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 -d -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 dev eth1
sudo ip l s eth1 up