Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run and test vpn #3

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/vpn/test.ovpn
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
client
remote azuregateway-d1ad0077-4117-45f0-b6fb-3989f1dd1945-a2e7e46fde0f.vpn.azure.com 443
verify-x509-name 'd1ad0077-4117-45f0-b6fb-3989f1dd1945.vpn.azure.com' name
remote-cert-tls server

dev tun
proto tcp
resolv-retry infinite
nobind

auth SHA256
cipher AES-256-GCM
persist-key
persist-tun

tls-timeout 30
tls-version-min 1.2
key-direction 1

dhcp-option DNS 10.0.2.4
dhcp-option DOMAIN azure.net
dhcp-option DOMAIN azure.com
dhcp-option DOMAIN azurewebsites.net
dhcp-option DOMAIN windows.net

verb 3

# P2S CA root certificate
ca ca.crt

# Pre Shared Key
tls-auth tls.key

# P2S client certificate
# Please fill this field with a PEM formatted client certificate
# Alternatively, configure 'cert PATH_TO_CLIENT_CERT' to use input from a PEM certificate file.
cert user.crt

# P2S client certificate private key
# Please fill this field with a PEM formatted private key of the client certificate.
# Alternatively, configure 'key PATH_TO_CLIENT_KEY' to use input from a PEM key file.
key user.key
15 changes: 5 additions & 10 deletions .github/workflows/check_vpn.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
name: Check connect vpn

on:
push:
branches-ignore:
- master
- develop
- dependabot
on: pull_request

jobs:
check-vpn:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install Open VPN
run: sudo apt-get install openvpn
- name: Connect VPN
uses: ./
id: connect_vpn
with:
PING_URL: ${{ secrets.PING_URL }}
FILE_OVPN: '.github/vpn/config.ovpn'
SECRET: ${{ secrets.SECRET_USERNAME_PASSWORD }}
PING_URL: '${{ secrets.PING_URL }}'
FILE_OVPN: '.github/vpn/test.ovpn'
TLS_KEY: ${{ secrets.TLS_KEY }}
env:
CA_CRT: ${{ secrets.CA_CRT}}
USER_CRT: ${{ secrets.USER_CRT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
push:
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/danger.yml

This file was deleted.