Skip to content

Instantly share code, notes, and snippets.

@bl4ck5un
Created June 12, 2014 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bl4ck5un/9b11aa898204a42b26a6 to your computer and use it in GitHub Desktop.
Save bl4ck5un/9b11aa898204a42b26a6 to your computer and use it in GitHub Desktop.
setup isatap tunnel on ubuntu
#!/bin/bash
ipv4_addr=`ifconfig eth0 | grep 'inet addr' | cut -d : -f 2 | cut -d ' ' -f 1`
ipv6_base='2402:f000:1:1501'
ip tunnel add sit1 mode sit remote 166.111.21.1 local ${ipv4_addr}
ifconfig sit1 up
ifconfig sit1 add ${ipv6_base}::${ipv4_addr}/64
ip -6 route add ::/0 via ${ipv6_base}::1 metric 1 dev sit1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment