Skip to content

Instantly share code, notes, and snippets.

@jianingy
Created August 3, 2017 15:42
Show Gist options
  • Save jianingy/bc29642b2075fc904ceae0b8bb442c55 to your computer and use it in GitHub Desktop.
Save jianingy/bc29642b2075fc904ceae0b8bb442c55 to your computer and use it in GitHub Desktop.
# client
conn %default
keyexchange=ikev2
authby=secret
conn roadwarrior
type=tunnel
left=192.168.224.186
leftsubnet=192.168.224.186/32[icmp],192.168.224.186/32[gre]
right=192.168.76.9
rightsubnet=192.168.76.9/32[icmp],192.168.76.9/32[gre]
auto=start
# server
conn %default
keyexchange=ikev2
authby=secret
conn server
type=tunnel
left=192.168.76.9
leftsubnet=192.168.76.9/32[icmp],192.168.76.9[gre]
right=%any
rightsubnet=192.168.224.186/32[icmp],192.168.224.186/32[gre]
auto=add
@jianingy
Copy link
Author

jianingy commented Aug 3, 2017

conn %default
keyexchange=ikev2
authby=secret

conn server
type=tunnel
left=192.168.76.9
leftsubnet=192.168.76.9/32[icmp],192.168.76.9[gre]
right=%any
rightsubnet=192.168.224.186/32[icmp],0.0.0.0/0[gre]
auto=add

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