-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62eee1b
commit 7faa15e
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,9 +52,29 @@ jobs: | |
|
||
- name: Set up WARP (for IPv6) | ||
if: matrix.ipv == 'ipv6' | ||
uses: fscarmen/[email protected] | ||
with: | ||
stack: dual | ||
run: | | ||
echo "WARP mode: wireguard." | ||
sudo apt-get -y update | ||
sudo apt-get -y install --no-install-recommends net-tools iproute2 openresolv dnsutils iptables wireguard-tools | ||
LAN=$(ip route get 192.168.193.10 | grep -oP 'src \K\S+') | ||
CONFIG="[Interface] | ||
PrivateKey = cKE7LmCF61IhqqABGhvJ44jWXp8fKymcMAEVAzbDF2k= | ||
Address = 172.16.0.2/32 | ||
Address = fd01:5ca1:ab1e:823e:e094:eb1c:ff87:1fab/128 | ||
PostUp = ip -4 rule add from $LAN lookup main | ||
PostDown = ip -4 rule delete from $LAN lookup main | ||
DNS = 8.8.8.8,8.8.4.4 | ||
MTU = 1280 | ||
[Peer] | ||
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo= | ||
" | ||
CONFIG+="AllowedIPs = ::/0 | ||
" | ||
CONFIG+="Endpoint = 162.159.193.10:2408" | ||
echo "$CONFIG" | sed "s/^[ ]\+//g" | sudo tee /etc/wireguard/warp.conf | ||
sudo wg-quick up warp | ||
sleep 1 | ||
- name: fetch TLS certificate | ||
run: curl --fail-with-body -v https://${{ env.HOSTNAME }}/${{ env.HOSTNAME }}.pem > ${{ github.workspace }}/${{ env.HOSTNAME }}.pem | ||
|