aboutsummaryrefslogtreecommitdiffstats
path: root/notes/projects/strongswan/vpn-notes.md
blob: 387cd673bacff44b19d182a11ab6916a9ae81a35 (plain) (blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
ISP VPN Servers
===============

Resources
=========

 * [How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 18.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-18-04-2)


Oustanding Tasks/Issues
=======================

   [ ] Determine whether to allow multiple sessions
   [x] Allocate 10.0.10.0/x for Strongswan VPN servers
   [ ] Test with Let's Encrypt certificates
   [ ] RADIUS integration
       [ ] RADIUS configs for VPN
       [ ] SQL IP Pool for VPN
       [ ] Local LDAP cache
   [ ] IPsec/L2TP Support
   [-] Configurations
       [x] Git sync firewall
       [x] Git sync keepalived
       [ ] Git sync strongswan
       [ ] Git sync swanctl
   [-] VPN Infrastructure
       [x] CWC Servers
           [x] Service IP Addresses
           [x] Admin VPN Pool
           [x] User VPN Pool
           [x] Admin Public NAT
           [x] User Public NAT
           [ ] production configs
       [ ] NWC Servers
           [x] Service IP Addresses
           [x] Admin VPN Pool
           [x] User VPN Pool
           [x] Admin Public NAT
           [x] User Public NAT
           [ ] production configs
       [ ] Lab Servers
           [ ] Service IP Addresses
           [ ] Admin VPN Pool
           [ ] User VPN Pool
           [ ] Admin Public NAT
           [ ] User Public NAT
           [ ] production configs
   [ ] SSH Bastion Infrastructure
       [ ] CWC Servers
           [ ] Move to private VPN subnet
           [ ] Move to public VPN subnet
           [ ] Add service addresses
       [ ] NWC Servers
           [ ] Move to private VPN subnet
           [ ] Move to public VPN subnet
           [ ] Add service addresses
   [ ] Write documentation
       [ ] MacOS Setup
       [ ] Apple iOS Setup
       [ ] Android Setup
       [ ] Ubuntu Setup
       [ ] CentOS Setup
       [ ] Windows 10 Setup
   [-] Test VPN on supported clients
       [x] MacOS (built-in)
       [x] Apple (built-in)
       [x] Android (strongswan app)
       [x] Ubuntu (Network Manager)
       [ ] CentOS (Network Manager)
       [ ] Windows 10


Configurations
==============

    * [Firewall Rules](https://configs.prv.nwc.acsalaska.net/pub/configs/vpn/ipeng/firewall.git/about/)
    * [Keepalived Configurations](https://configs.prv.nwc.acsalaska.net/pub/configs/vpn/ipeng/keepalived.git/about/)
    * [Strongswan Configurations](https://configs.prv.nwc.acsalaska.net/pub/configs/vpn/ipeng/strongswan.git/about/)
    * [Swanctl Configurations](https://configs.prv.nwc.acsalaska.net/pub/configs/vpn/ipeng/swanctl.git/about/)


Notes
=====

Charon
------

Starting the daemon:

    ipsec start
    swanctl --load-all


Stopping the daemin:

    ipsec stop


VPN Settings
============

   * VPN Type:       IKEv2
   * Server Address: vpn.cwc.acsalaska.net
   * Remote ID:      vpn.acsalaska.net
   * Username:       syzdek
   * Password:       XXXXXXXX
   * Server Cert:    http://certs.acsalaska.net/certs/akcom-ipeng-vpnCA.pem


Networking
==========

   * VLAN
     - VPN Internal:          ISP_VPN  / 2080
     - VPN Public:            ISP_VPN  / 2081

   * Networks
     - 10.0.10.0/24           ISP VPN Admin Pools
       - 10.0.10.0/26         Redback @home DSL
       - 10.0.10.64/26        ISP Cisco VPN3000 Pool (vpn1)
       - 10.0.10.128/26       ISP VPN/Strongswan Admin Pool (NWC)
       - 10.0.10.192/26       ISP VPN/Strongswan Admin Pool (CWC)

     - 10.0.48.192/27         ISP VPN/Strongswan Test Pools

     - 10.0.49.192/27         ISP VPN/Strongswan Servers Private
       - 10.0.49.192/28       ISP VPN/Strongswan Servers Private (NWC)
       - 10.0.49.208/28       ISP VPN/Strongswan Servers Private (CWC)

     - 10.0.59.128/25         ISP VPN/Strongswan User Pools
       - 10.0.59.128/26       ISP VPN/Strongswan User Pool (NWC)
       - 10.0.59.192/26       ISP VPN/Strongswan User Pool (CWC)

     - 209.112.142.48/28      ISP VPN/Strongswan Servers Public
       - 209.112.142.48/29    ISP VPN/Strongswan Servers Public (NWC)
       - 209.112.142.56/29    ISP VPN/Strongswan Servers Public (CWC)

     - 209.112.156.200/30     ISP VPN/Strongswan Admin NAT
       - 209.112.156.200/31   ISP VPN/Strongswan Admin NAT (NWC)
       - 209.112.156.202/31   ISP VPN/Strongswan Admin NAT (CWC)


Hosts
=====

Virtual Addresses
-----------------

   * Service addresses
     - 209.112.142.10  - vpn.nwc.acsalaska.net
     - 209.112.142.11  - vpn.cwc.acsalaska.net
     - 209.112.142.12  - vpn.acsalaska.net
     - 209.112.142.13  - vpntest.lab.acsalaska.net

   * User NAT IP Addresses
     - 209.112.142.52  - usrnat1.vpnvrrp20.nwc.acsalaska.net.
     - 209.112.142.53  - usrnat1.vpnvrrp20.nwc.acsalaska.net.
     - 209.112.142.60  - usrnat1.vpnvrrp30.cwc.acsalaska.net.
     - 209.112.142.61  - usrnat1.vpnvrrp30.cwc.acsalaska.net.

   * Admin NAT IP Addresses
     - 209.112.156.200 - admnat1.vpnvrrp20.nwc.acsalaska.net
     - 209.112.156.201 - admnat2.vpnvrrp20.nwc.acsalaska.net
     - 209.112.156.202 - admnat1.vpnvrrp30.cwc.acsalaska.net
     - 209.112.156.203 - admnat2.vpnvrrp30.cwc.acsalaska.net


Routers
-------

   * mx1.nwc
     - xe-11/3/1.2080: 10.0.49.206/28
     - xe-11/3/1.2081: 209.112.142.54/29

   * mx1.cwc
     - xe-11/3/1.2080: 10.0.49.222/28
     - xe-11/3/1.2081: 209.112.142.62/29


VRRP Groups
-----------

   * vpntestvrrp20.prv.lab
     - Parent:     vpntest20.prv.lab/vpntest21.prv.lab
     - Network:    VLAN 2080: 10.0.49.203/28     GW 10.0.49.206

   * vpntestvrrp20.lab
     - Parent:     vpntest20.prv.lab/vpntest21.prv.lab
     - Network:    VLAN 2081: 209.112.142.51/29  GW 209.112.142.54

   * vpnvrrp20.prv.nwc
     - Parent:     vpn20.prv.nwc/vpn21.prv.nwc
     - Network:    VLAN 2080: 10.0.49.205/28     GW 10.0.49.206

   * vpnvrrp20.nwc
     - Parent:     vpn20.prv.nwc/vpn21.prv.nwc
     - Network:    VLAN 2081: 209.112.142.49/29  GW 209.112.142.54
                   VLAN 2081: 209.112.142.52/29
                   VLAN 2081: 209.112.142.53/29

   * vpnvrrp30.prv.cwc
     - Parent:     vpn30.prv.cwc/vpn31.prv.cwc
     - Network:    VLAN 2080: 10.0.49.213/28     GW 10.0.49.222

   * vpnvrrp30.cwc
     - Parent:     vpn30.prv.cwc/vpn31.prv.cwc
     - Network:    VLAN 2081: 209.112.142.58/29  GW 209.112.142.62
                   VLAN 2081: 209.112.142.60/29
                   VLAN 2081: 209.112.142.61/29


Servers
-------

   * vpn20.prv.nwc
     - Alias:      vpn20.mwc.acsalaska.net
     - Parent:     xen62.prv.nwc/xen63.prv.nwc
     - Network:    VLAN 2080: 10.0.49.196/28     GW 10.0.49.206
     
   * vpn21.prv.nwc
     - Alias:      vpn21.nwc.acsalaska.net
     - Parent:     xen63.prv.nwc/xen62.prv.nwc
     - Network:    VLAN 2080: 10.0.49.197/28     GW 10.0.49.206

   * vpn30.prv.cwc
     - Alias:      vpn30.cwc.acsalaska.net
     - Parent:     xen18.prv.cwc/xen19.prv.cwc
     - Network:    VLAN 2080: 10.0.49.212/28     GW 10.0.49.222

   * vpn31.prv.cwc
     - Alias:      vpn31.cwc.acsalaska.net
     - Parent:     xen19.prv.cwc/xen18.prv.cwc
     - Network:    VLAN 2080: 10.0.49.213/28     GW 10.0.49.222