Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| web_gui:vpn_status_page [2010/11/18 14:49] – mats | web_gui:vpn_status_page [2010/11/26 14:11] (current) – mats | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The status page shows all current IPSec connections (=tunnels) that are terminated by this unit. | The status page shows all current IPSec connections (=tunnels) that are terminated by this unit. | ||
| + | |||
| + | {{: | ||
| ==== Understanding the phases ==== | ==== Understanding the phases ==== | ||
| Line 14: | Line 16: | ||
| * The remote peer (gateway) couldn' | * The remote peer (gateway) couldn' | ||
| * Mode mismatch: there are two modes of negotiation: | * Mode mismatch: there are two modes of negotiation: | ||
| - | * Algorithm mismatch: the two peers cannot agree on a mutual set of authentication/ | + | * Algorithm mismatch: the two peers cannot agree on a mutual set of authentication/ |
| * ID mismatch: the two peers don't fully recognize each other' | * ID mismatch: the two peers don't fully recognize each other' | ||
| * Key mismatch: the two peers have different opinions about what pre-shared key to be used. | * Key mismatch: the two peers have different opinions about what pre-shared key to be used. | ||
| - | * Certificate mismatch: one of the peers could not get the other' | + | * [[vpn: |
| To fix the problems the settings on the [[web_gui: | To fix the problems the settings on the [[web_gui: | ||
| Line 23: | Line 25: | ||
| === Phase 2 === | === Phase 2 === | ||
| - | If the IKE is successful it starts to negotiate | + | If the IKE has been successful it now carries on negotiating (and tries creating) |
| This negotiation is often called //Phase 2// or //Quick mode//. | This negotiation is often called //Phase 2// or //Quick mode//. | ||
| - | If this fails, no [[#Security associations|SA (Security association)]] tunnel will show up in spite of the IKE SA being ready and // | + | If this fails, no SA (Security association) tunnel will show up in spite of the IKE SA (phase 1) being ready and // |
| In this case there may be problems with: | In this case there may be problems with: | ||
| * Protocol mismatch: the two peers cannot agree on a mutual protocol (AH, ESP or both). | * Protocol mismatch: the two peers cannot agree on a mutual protocol (AH, ESP or both). | ||
| - | * Algorithm mismatch: the two peers cannot agree on a mutual set of authentication/ | + | * Algorithm mismatch: the two peers cannot agree on a mutual set of authentication/ |
| * PFS (Perfect Forward Secrecy) settings mismatch. Both peers must agree on using it - or not using it. | * PFS (Perfect Forward Secrecy) settings mismatch. Both peers must agree on using it - or not using it. | ||
| - | * IP address mismatch of the local/ | + | * IP address mismatch of the local/ |
| Problems with this Phase 2 are typically related to the settings on the [[web_gui: | Problems with this Phase 2 are typically related to the settings on the [[web_gui: | ||
| The IKE SA is capable of establishing more than one pair of IPSec tunnels (SA:s). | The IKE SA is capable of establishing more than one pair of IPSec tunnels (SA:s). | ||
| - | Furthermore, | + | Furthermore, |
| Consequently, | Consequently, | ||
| Line 43: | Line 45: | ||
| The first packet to be sent will be the one that triggered the negotiation and due to that procedure it will be heavily delayed. | The first packet to be sent will be the one that triggered the negotiation and due to that procedure it will be heavily delayed. | ||
| But subsequent packets will suffer from no such delay, the tunnel is kept open and will be replaced by a new SA (as has been described) if needed, well in advance before the lifetime runs out. | But subsequent packets will suffer from no such delay, the tunnel is kept open and will be replaced by a new SA (as has been described) if needed, well in advance before the lifetime runs out. | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| ==== ==== | ==== ==== | ||
| ---- | ---- | ||
| Line 51: | Line 55: | ||
| * On the WAN port, however, these packets are forwarded as ESP or AH packets - the TCP or UDP (or whatever) header/ | * On the WAN port, however, these packets are forwarded as ESP or AH packets - the TCP or UDP (or whatever) header/ | ||
| + | ---- | ||
| + | :?: The [[vpn_log_page|VPN log]] page is also useful for monitoring the progress of the IPsec tunnels. | ||
| + | \\ | ||
| ===== Security associations ===== | ===== Security associations ===== | ||
| List of all currently active " | List of all currently active " | ||
| Line 57: | Line 64: | ||
| **Destination** Global IP address of the connected peer for the tunnel. (For outgoing tunnels the IP address of the remote peer, for incoming tunnels the own global IP address of this unit.)\\ | **Destination** Global IP address of the connected peer for the tunnel. (For outgoing tunnels the IP address of the remote peer, for incoming tunnels the own global IP address of this unit.)\\ | ||
| **Direction** " | **Direction** " | ||
| - | **SPI** (Security Parameter Index) Tunnel ID number | + | **SPI** (Security Parameter Index) Tunnel ID number |
| **Protocol** IPSec encapsulation protocol. Can be AH ([[wp> | **Protocol** IPSec encapsulation protocol. Can be AH ([[wp> | ||
| **Algorithm** Encryption/ | **Algorithm** Encryption/ | ||
| **Elapsed time** Tunnel uptime (number of seconds since it was established).\\ | **Elapsed time** Tunnel uptime (number of seconds since it was established).\\ | ||
| - | **Life time** Maximum allowed uptime for the tunnel. If elapsed time reaches | + | **Life time** Maximum allowed uptime for the tunnel. If elapsed time approaches |
| **Bytes processed** Number of data bytes transferred in the tunnel since its establishment.\\ | **Bytes processed** Number of data bytes transferred in the tunnel since its establishment.\\ | ||
| **Errored packets** Number of packets not conforming or dropped due to errors, since tunnel was established.\\ | **Errored packets** Number of packets not conforming or dropped due to errors, since tunnel was established.\\ | ||
| Line 71: | Line 78: | ||
| **Remote Gateway** Global IP address of the remote peer.\\ | **Remote Gateway** Global IP address of the remote peer.\\ | ||
| - | **Status** Tunnel status: Activated / Idle / | + | **Status** Tunnel status: Activated / Idle / |
| **Algorithm** Authentication/ | **Algorithm** Authentication/ | ||
| **Elapsed time** Tunnel uptime (number of seconds since it was established).\\ | **Elapsed time** Tunnel uptime (number of seconds since it was established).\\ | ||
| Line 81: | Line 88: | ||
| + | === Negotiation states === | ||
| + | These tables show the interpretation of the state number showed in the **Status** column. | ||
| + | The state merely shows how far in the message exchange the negotiation has reached at a certain point. | ||
| + | Along with the entries in the VPN log, it could give a clue where a particular negotiaition fails. | ||
| + | |||
| + | In order to use the table correctly one must also know: | ||
| + | * Is //main// or // | ||
| + | * Are we the initiator or responder? Check the settings in the **Act as** dropdown box in [[web_gui: | ||
| + | |||
| + | ^ main mode ^^^ | ||
| + | ^ ^ initiator | ||
| + | |Idle(0)| | ||
| + | |1|start|start (1st msg received)| | ||
| + | |2| --- |1st valid msg received| | ||
| + | |3|1st msg sent|1st msg sent| | ||
| + | |4|1st valid msg received|2st valid msg received| | ||
| + | |5|2nd msg sent|2nd msg sent| | ||
| + | |6|2nd valid msg received|3rd valid msg received| | ||
| + | |7|3rd msg sent|3rd msg sent| | ||
| + | |8|3rd valid msg received| | ||
| + | |Activated(9)|IKE SA established|IKE SA established| | ||
| + | |||
| + | ^ aggressive mode ^^^ | ||
| + | ^ ^ initiator | ||
| + | |Idle(0)| | ||
| + | |1|start|start (1st msg received)| | ||
| + | |2| --- |1st valid msg received| | ||
| + | |3|1st msg sent|1st msg sent| | ||
| + | |4|1st valid msg received|2st valid msg received| | ||
| + | |5| --- | --- | | ||
| + | |6| --- | --- | | ||
| + | |7| --- | --- | | ||
| + | |8| --- | --- | | ||
| + | |Activated(9)|IKE SA established|IKE SA established| | ||
| + | |||
| + | Understanding the message exchange and the contents of the packets is advanced and necessarily involves reading the [[http:// | ||
