Skip to content

Instantly share code, notes, and snippets.

@thirdwheel
Created December 23, 2018 04:01
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 thirdwheel/fba574667a8174da5419de9acf736a4b to your computer and use it in GitHub Desktop.
Save thirdwheel/fba574667a8174da5419de9acf736a4b to your computer and use it in GitHub Desktop.
IPSec connection from behind NAT
# 10.0.0.21 is the "public" IP address - local is 10.40.180.50 (DHCP)
ike esp from 10.0.0.21 to 10.0.0.23
# 10.255.255.253 is the IP on this side of a gif(4) tunnel, the other is the other side
ike esp from 10.255.255.253 to 10.255.255.252 peer 10.0.0.23
# ifconfig output at https://pasteboard.co/HT0kGu7.png
# tcpdump output at https://pasteboard.co/HT0m2JA.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment