Skip to content

Instantly share code, notes, and snippets.

@steveberryman
Created September 19, 2019 19:47
Show Gist options
  • Save steveberryman/64836abf02eb1470ac8a4b32e84bfae6 to your computer and use it in GitHub Desktop.
Save steveberryman/64836abf02eb1470ac8a4b32e84bfae6 to your computer and use it in GitHub Desktop.
On gateway machine:
ip link add gretap type gretap remote <dst_host_public_ipv4> ttl 64
ip link set gretap up
ip -6 a a fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyyy/64 dev gretap
ip -6 route add <public::ipv6::address:routed::to:host/64> via fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:zzzz dev gretap
On destination machine:
ip link add gretap type gretap remote <src_host_public_ipv4> ttl 64
ip link set gretap up
ip -6 a a fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:zzzz/64 dev gretap
ip -6 route add <public::ipv6::address:routed::to:host/64> via fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyyy dev gretap
ip -6 default replace via fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyyy dev gretap
@steveberryman
Copy link
Author

when all else fails, cry in to your martini.

@steveberryman
Copy link
Author

the salt from the tears complements the olive juice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment