VPN review

Review an old tunnel

Lesson 19 of 20 · 14 min · Module 6: Put it together

The oldest tunnel in the company was configured by someone who has left, for hardware that has been replaced, with defaults from another decade. It has never failed, so nobody has looked at it.

Start this lesson →

Free. No installation: you write and run the code in your browser, and it is checked automatically.

By the end, you’ll be able to…

  • Review a tunnel for weak algorithms, PFS, lifetimes and DPD
  • Correct each finding without breaking the tunnel
  • Leave a configuration that states what it does

The idea

A tunnel review asks four questions. Cryptography: is anything weak still offered? Forward secrecy: is PFS on? Timers: are the lifetimes sensible and the right way round? Resilience: will the gateway notice a dead peer? The tunnel has to keep working through every correction.

ike proposal 3des sha1 dh2      # finding: weak, and listed first

01Read what is really negotiated

Run the lab first and read which algorithms the tunnel uses today. The configuration offers a strong proposal too, but it is in second place and is never chosen.

02Correct in an order that keeps it up

Remove the weak proposals; the strong ones are already accepted by the branch. Then add PFS with the group the branch uses, put the lifetimes the right way round, and add DPD.

03Agree the other half

Every one of these findings exists on the branch gateway as well. A review ends with a list for the other administrator, so that the weak proposal is removed there too and cannot be chosen by anyone.

Your turn

Review this tunnel and correct four findings. 1. Weak IKE and IPsec proposals are offered first. 2. There is no PFS; the branch supports group 14. 3. The lifetimes are reversed; use 86400 for IKE and 3600 for IPsec. 4. There is no dead peer detection; use an interval of 10 seconds. The tunnel must stay up.

What the checks look for

  • Nothing weak is offered, and the tunnel uses aes256 with sha256
  • PFS with group 14 is used, and rekeying works
  • The lifetimes are set to one day for IKE and one hour for IPsec
  • A dead peer is noticed within a minute
  • The tunnel still carries the traffic
Try it in the editor →

Take this with you

Review tunnels for cryptography, forward secrecy, timers and resilience, and finish with the matching list for the other side.

Go a little further

Write the four-line message you would send to the branch administrator so that the same corrections are made there.

Learn VPN & IPsec Foundations for free

20 short lessons with real code and instant checks.

See the whole course →