-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·34 lines (24 loc) · 886 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# To compile, simply run `make`. No need for configure.
# You need your kernel headers & Kbuild & stuff.
set -x
IFNAME="siit0"
sudo insmod mod/joolif.ko
sudo sysctl -w net.ipv4.conf.all.forwarding=1 > /dev/null
sudo sysctl -w net.ipv6.conf.all.forwarding=1 > /dev/null
sudo ip link add name $IFNAME type siit
sudo ip addr add 2001:db8:1c0:2:21::/40 dev $IFNAME # 192.0.2.33
sudo ip addr add 198.51.100.2/5 dev $IFNAME # 2001:db8:1c6:3364:2::
sudo ip link set $IFNAME up
sudo usr/joolif $IFNAME pool6 2001:db8:100::/40
sudo usr/joolif $IFNAME pool6791v4 198.51.100.1
sudo usr/joolif $IFNAME pool6791v6 2001:db8:1c0:2:1::
# Not sure if this is still relevant
sudo sysctl -w net.ipv6.auto_flowlabels=0 > /dev/null
# Sample pings to yourself through xlator:
# ping 2001:db8:1c6:3364:2::
# ping 192.0.2.33
#
# End:
# (Optional) sudo ip link del siit0
# sudo rmmod joolif