Skip to content

Instantly share code, notes, and snippets.

@ramr
Last active August 29, 2015 14:21
Show Gist options
  • Save ramr/b87d6cb2c4ae79ad4dbb to your computer and use it in GitHub Desktop.
Save ramr/b87d6cb2c4ae79ad4dbb to your computer and use it in GitHub Desktop.
f5 to node ip tunnel
f5:
ip tunnel del tun1
ip tunnel add tun1 mode ipip remote 10.3.89.46 dev eth0
ip tunnel
ifconfig tun1 10.3.91.216
ip link set tun1 up
# for remote end tunnel
ip route add 10.3.91.46 dev tun1
# for docker containers.
ip route add 10.1.0.0/16 dev tun1
node:
ip tunnel del tun1
ip tunnel add tun1 mode ipip remote 10.3.88.216 dev eth0
ip tunnel
ifconfig tun1 10.3.91.46
# for remote end tunnel
ip route add 10.3.91.216 dev tun1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment