Skip to content

Commit

Permalink
remove obsolete ones (items with generate_policy)
Browse files Browse the repository at this point in the history
remove remote access and bridge examples, as they do not seem to work.
split phase 1 and phase 2 SA descriptions.
  • Loading branch information
itojun committed Sep 23, 2000
1 parent bc5edae commit aaecad1
Showing 1 changed file with 20 additions and 59 deletions.
79 changes: 20 additions & 59 deletions kame/kame/racoon/doc/pattern
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ IPsec transport mode
(A) (B) (A) (B)


IKE negotiation: A <--> B IKE negotiation: A <--> B
ID payloads: anything,anything phase 1 ID payloads: <anything, anything>
SA addresses: A <--> B SA addresses: A <--> B
outgoing packet: IP(A->B) outgoing packet: IP(A->B)
phase 2 ID payloads: none, or <A, B>


HOST-A's policy: HOST-A's policy:
spdadd A B any -P out ipsec ah/transport//require; spdadd A B any -P out ipsec ah/transport//require;
Expand All @@ -17,17 +18,19 @@ IPsec transport mode
spdadd A B any -P in ipsec ah/transport//require; spdadd A B any -P in ipsec ah/transport//require;


both racoon.conf: both racoon.conf:
no particular no particular twists


IPsec tunnel mode IPsec tunnel mode


HOST-A --- Gateway-A =========== Gateway-B --- HOST-B HOST-A --- Gateway-A =========== Gateway-B --- HOST-B
(A) (GA) (GB) (B) (A) (GA) (GB) (B)


IKE negotiation: GA <--> GB IKE negotiation: GA <--> GB
ID payloads: A,B phase 2 ID payloads: <anything, anything>
IDs should reflect GA and GB's authenticity.
SA addresses: GA <--> GB SA addresses: GA <--> GB
outgoing packet: IP(GA->GB) outgoing packet: IP(GA->GB)
phase 2 ID payloads: A, B


Gateway-A's policy: Gateway-A's policy:
spdadd A B any -P out ipsec esp/tunnel/GA-GB/require; spdadd A B any -P out ipsec esp/tunnel/GA-GB/require;
Expand All @@ -38,7 +41,7 @@ IPsec tunnel mode
spdadd A B any -P in ipsec esp/tunnel/GA-GB/require; spdadd A B any -P in ipsec esp/tunnel/GA-GB/require;


both racoon.conf: both racoon.conf:
no particular no particular twists


MIP6 MIP6


Expand All @@ -47,9 +50,10 @@ MIP6


IKE negotiation: COA <--> CNA IKE negotiation: COA <--> CNA
* MN always initiate IKE session probably. * MN always initiate IKE session probably.
ID payloads: HA,CNA phase 1 ID payloads: <anything, anything>
SA addresses: HA <--> CNA SA addresses: HA <--> CNA
outgoing packet: IP(COA->CNA) | HAoption(HA) outgoing packet: IP(COA->CNA) | HAoption(HA)
phase 2 ID payloads: <HA, CNA>


MN's policy: MN's policy:
spdadd HA CNA any -P out ipsec ah/transport//require; spdadd HA CNA any -P out ipsec ah/transport//require;
Expand All @@ -72,69 +76,26 @@ Accept anonymous client on IPsec transport mode
(A) (S) (A) (S)


IKE negotiation: A <-> S IKE negotiation: A <-> S
ID payloads: anything,anything phase 1 ID payloads: anything,anything
SA addresses: A <--> S SA addresses: A <--> S
phase 2 ID payloads: none

S accepts network connections from network range net/pl (like
1.0.0.0/8).


HOST-A's policy: HOST-A's policy:
spdadd A S any -P out ipsec esp/transport//require; spdadd A S any -P out ipsec esp/transport//require;
spdadd S A any -P in ipsec esp/transport//require; spdadd S A any -P in ipsec esp/transport//require;


A's racoon.conf: A's racoon.conf:
no particular no particular twists


Server's policy: Server's policy:
spdadd S A any -P out ipsec esp/transport//require; spdadd S net/pl any -P out ipsec esp/transport//require;
spdadd A S any -P in ipsec esp/transport//require; spdadd net/pl S any -P in ipsec esp/transport//require;
* SP will be installed by racoon.


Server's racoon.conf: Server's racoon.conf:
generate_policy on; no particular twists

Accept anonymous client on IPsec tunnel mode

HOST-A =========== Gateway --- HOST-B
(A) (G) (B)

IKE negotiation: A <-> G
ID payloads: anything,B
SA addresses: A <--> G

HOST-A's policy:
spdadd A B any -P out ipsec esp/tunnel/A-G/require;
spdadd B A any -P in ipsec esp/tunnel/G-A/require;

A's racoon.conf:
no particular

Gateway's policy:
spdadd B A any -P out ipsec esp/tunnel/G-A/require;
spdadd A B any -P in ipsec esp/tunnel/A-G/require;
* SP will be installed by racoon.

Gateway's racoon.conf:
generate_policy on;

Bridge mode

HOST-A =========== Bridge --- HOST-C
(A) (C)

IKE negotiation: A <--> C
ID payloads: A,C
SA addresses: A <--> C
outgoing packet: IP(A->C) | IPsec

HOST-A's policy:
spdadd A C any -P out ipsec esp/transport//require;
spdadd C A any -P in ipsec esp/transport//require;

HOST-A's racoon.conf:
TBD

Bridge's policy:
spdadd C A any -P out ipsec esp/transport//require;
spdadd A C any -P in ipsec esp/transport//require;

Bridge's racoon.conf:
TBD


due to the absense of phase 2 ID, IPsec SA will be installed for
A <--> S, not for net/pl <--> S.

0 comments on commit aaecad1

Please sign in to comment.