Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
services
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
services
Commits
8768d99d
Commit
8768d99d
authored
Mar 26, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extras
parent
7d150277
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
6 deletions
+61
-6
zeeai-ikev2/.gitignore
zeeai-ikev2/.gitignore
+3
-0
zeeai-ikev2/data/www.test-ikev2.mypaper.ai.zip
zeeai-ikev2/data/www.test-ikev2.mypaper.ai.zip
+0
-0
zeeai-ikev2/docker-compose.yml.j2
zeeai-ikev2/docker-compose.yml.j2
+4
-4
zeeai-ikev2/extract-certs.sh
zeeai-ikev2/extract-certs.sh
+6
-0
zeeai-ikev2/templates/ikev2-express.conf.j2
zeeai-ikev2/templates/ikev2-express.conf.j2
+46
-0
zeeai-ikev2/templates/ikev2.conf.j2
zeeai-ikev2/templates/ikev2.conf.j2
+1
-1
zeeai-ikev2/templates/ikev2.conf.j2.bak2
zeeai-ikev2/templates/ikev2.conf.j2.bak2
+1
-1
zeeai-ikev2/www.test-ikev2.mypaper.ai/ca_bundle.crt
zeeai-ikev2/www.test-ikev2.mypaper.ai/ca_bundle.crt
+0
-0
zeeai-ikev2/www.test-ikev2.mypaper.ai/certificate.crt
zeeai-ikev2/www.test-ikev2.mypaper.ai/certificate.crt
+0
-0
zeeai-ikev2/www.test-ikev2.mypaper.ai/private.key
zeeai-ikev2/www.test-ikev2.mypaper.ai/private.key
+0
-0
No files found.
zeeai-ikev2/.gitignore
0 → 100644
View file @
8768d99d
/certs
/data/certs
/test
zeeai-ikev2/data/www.test-ikev2.mypaper.ai.zip
deleted
100644 → 0
View file @
7d150277
File deleted
zeeai-ikev2/docker-compose.yml.j2
View file @
8768d99d
...
@@ -9,10 +9,10 @@ services:
...
@@ -9,10 +9,10 @@ services:
- NET_ADMIN
- NET_ADMIN
- NET_RAW
- NET_RAW
volumes:
volumes:
- ./templates/ikev2.conf:/etc/swanctl/conf.d/ikev2.conf:ro
- ./templates/ikev2
-express
.conf:/etc/swanctl/conf.d/ikev2.conf:ro
- ./data/certs/certificate.crt:/etc/swanctl/x509/cert.pem:ro
- ./data/certs/
{{inventory_hostname}}/
certificate.crt:/etc/swanctl/x509/cert.pem:ro
- ./data/certs/private.key:/etc/swanctl/private/privkey.pem:ro
- ./data/certs/
{{inventory_hostname}}/
private.key:/etc/swanctl/private/privkey.pem:ro
- ./data/certs/ca_bundle.crt:/etc/swanctl/x509ca/ca.pem:ro
- ./data/certs/
{{inventory_hostname}}/
ca_bundle.crt:/etc/swanctl/x509ca/ca.pem:ro
# command: sleep infinity
# command: sleep infinity
environment:
environment:
FOO: 3
FOO: 3
...
...
zeeai-ikev2/extract-certs.sh
0 → 100755
View file @
8768d99d
#!/bin/bash
domain
=
"
$1
"
zip
=
"certs/
$domain
.zip"
dist
=
"data/certs/
$domain
"
7z x
-y
-o
"
$dist
"
"
$zip
"
zeeai-ikev2/templates/ikev2-express.conf.j2
0 → 100644
View file @
8768d99d
connections {
ikev2-eap-mschapv2 {
version = 2
unique = never
rekey_time = 0s
fragmentation = yes
dpd_delay = 60s
send_cert = always
pools = rw_pool
proposals = aes256-sha256-prfsha256-modp2048, aes256gcm16-prfsha384-modp1024, default
local_addrs = %any
local {
certs = cert.pem
id = {{inventory_hostname}}
}
remote {
auth = eap-mschapv2
eap_id = %any
}
children {
ikev2-eap-mschapv2 {
local_ts = {{allow_network}}
rekey_time = 0s
dpd_action = clear
esp_proposals = aes256-sha256, aes128-sha1, default
}
}
}
}
secrets {
private-cert {
file = privkey.pem
}
eap-{{inventory_hostname_short}} {
id = {{inventory_hostname_short}}
secret = "{{secret}}"
}
}
pools {
rw_pool {
addrs = {{network}}
{% if dns %}
dns = {{dns}}
{% endif %}
}
}
zeeai-ikev2/templates/ikev2.conf.j2
View file @
8768d99d
...
@@ -11,7 +11,7 @@ connections {
...
@@ -11,7 +11,7 @@ connections {
local_addrs = %any
local_addrs = %any
local {
local {
certs = cert.pem
certs = cert.pem
id = {{
ansible_ssh_host
}}
id = {{
inventory_hostname
}}
}
}
remote {
remote {
auth = eap-mschapv2
auth = eap-mschapv2
...
...
zeeai-ikev2/templates/ikev2.conf.j2.bak2
View file @
8768d99d
...
@@ -3,7 +3,7 @@ connections {
...
@@ -3,7 +3,7 @@ connections {
version = 2
version = 2
unique = never
unique = never
pools = rw_pool
pools = rw_pool
local_addrs = {{
ansible_ssh_host
}}
local_addrs = {{
inventory_hostname
}}
local {
local {
auth = psk
auth = psk
id = {{server_id}}
id = {{server_id}}
...
...
zeeai-ikev2/
data/certs
/ca_bundle.crt
→
zeeai-ikev2/
www.test-ikev2.mypaper.ai
/ca_bundle.crt
View file @
8768d99d
File moved
zeeai-ikev2/
data/certs
/certificate.crt
→
zeeai-ikev2/
www.test-ikev2.mypaper.ai
/certificate.crt
View file @
8768d99d
File moved
zeeai-ikev2/
data/certs
/private.key
→
zeeai-ikev2/
www.test-ikev2.mypaper.ai
/private.key
View file @
8768d99d
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment