aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/swanctl/rw-psk-ikev1/hosts/moon/etc/swanctl/swanctl.conf
blob: 10dfc779ec42524f6adcfc56e7083a6800a5c612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
connections {

   rw-1 {
      local_addrs  = 192.168.0.1
      remote_addrs = 192.168.0.96/28

      local {
         auth = psk 
      }
      remote {
         auth = psk 
      }
      children {
         net-1 {
            local_ts  = 10.1.0.0/28

            updown = /usr/local/libexec/ipsec/_updown iptables
            esp_proposals = aes128gcm128-curve25519
         }
      }
      version = 1 
      proposals = aes128-sha256-curve25519
   }

   rw-2 {
      local_addrs  = 192.168.0.1
      remote_addrs = 192.168.0.150-192.168.0.200

      local {
         auth = psk
      }
      remote {
         auth = psk
      }
      children {
         net-2 {
            local_ts  = 10.1.0.17-10.1.0.20

            updown = /usr/local/libexec/ipsec/_updown iptables
            esp_proposals = aes192gcm128-modp4096
         }
      }
      version = 1
      proposals = aes192-sha384-modp4096
   }
}


secrets {

   ike-any {
      id = 0.0.0.0/0 0::0/0
      secret = 0soBAJZLI7Bwwi61Rl113FqD/3
   }
   ike-rw-1 {
      id = 192.168.0.96/28
      secret = 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
   }
   ike-rw-2 {
      id = 192.168.0.150-192.168.0.200
      secret = 0s8qPdxyhDeGfk1l211cS8urXc
   }
   ike-dave {
      id = 192.168.0.200
      secret = 0sjVzONCF02ncsgiSlmIXeqhGN
   }
}