summaryrefslogtreecommitdiff
path: root/vpn/swanctl.conf.tpl
blob: da988e0e8b191b903edfec098f10160a24729574 (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
connections {
    ikev2-eap {
        version = 2
        # iOS/macOS/Android 互換の暗号スイート
        proposals = aes256gcm16-prfsha256-ecp256,aes256-sha256-ecp256,aes256gcm16-prfsha384-ecp384,aes256-sha256-modp2048,aes256-sha1-modp2048

        local {
            auth = pubkey
            certs = server.crt
            id = ${VPN_DOMAIN}
        }

        remote {
            auth = eap-mschapv2
            eap_id = %any
        }

        children {
            vpn {
                local_ts = 0.0.0.0/0
                esp_proposals = aes256gcm16,aes256-sha256,aes256-sha1
                dpd_action = clear
            }
        }

        pools = pool4
        send_certreq = no
        send_cert = always
        dpd_delay = 30s
    }
}

pools {
    pool4 {
        addrs = 10.10.0.0/24
        dns = 1.1.1.1,8.8.8.8
    }
}

secrets {
${VPN_SECRETS}
}