Added jool-start.sh script
This commit is contained in:
parent
4151461289
commit
a099bda058
14
tools/ip64/jool-start.sh
Executable file
14
tools/ip64/jool-start.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
defaultInterface=$(route | grep default | awk '{print $(NF)}')
|
||||
myIP=$(ifconfig $defaultInterface | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
|
||||
echo "Configuring jool for $myIP"
|
||||
|
||||
sudo sysctl -w net.ipv4.conf.all.forwarding=1
|
||||
sudo sysctl -w net.ipv6.conf.all.forwarding=1
|
||||
|
||||
sudo /sbin/modprobe jool pool6=64:ff9b::/96 disabled
|
||||
|
||||
# Assuming that we are on this IP
|
||||
sudo jool -4 --add $myIP 15000-25000
|
||||
sudo jool --enable
|
Loading…
Reference in New Issue
Block a user