VyOS/Vyatta GRE Encrypted Tunnels

Setting up an Encrypted GRE Tunnel between 2 sites.

Set up the IPSEC stuff first.

edit vpn ipsec site-to-site peer <>
set authentication mode pre-shared-secret
set authentication pre-shared-secret dflkgajdksdlgkltijwlelsdngslk
set connection-type initiate
set ike-group IKE-GRE
set local-address <>
set tunnel 0 allow-nat-networks disable
set tunnel 0 allow-public-networks disable
set tunnel 0 esp-group ESP-GRE
set tunnel 0 local prefix <>/32
set tunnel 0 remote prefix <>/32
top
commit; save

Setting up the tunnel interface

edit interfaces tunnel tun0
set address 172.16.100.22/30
set encapsulation gre
set local-ip <>
set remote-ip <>
top
commit; save

Setting up static Routes over the tunnel as required.

set protocols static route 10.10.10.0/24 next-hop 172.16.100.21
commit; save

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
This entry was posted in Little Guides, Personal Projects and tagged , , , , . Bookmark the permalink.

Comments are closed.