Merge pull request #696 from wg-easy/iptables-fix

Version 9: Fix issue running on older kernels
This commit is contained in:
Peter Lewis 2023-12-22 08:26:07 +00:00 committed by GitHub
commit a7347aec99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 7 deletions

View File

@ -0,0 +1,36 @@
name: Build & Publish Development
on:
workflow_dispatch:
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
with:
ref: production
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Publish Docker Image
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
tags: ghcr.io/wg-easy/wg-easy:development

View File

@ -21,9 +21,14 @@ RUN mv /app/node_modules /node_modules
# Install Linux packages
RUN apk add -U --no-cache \
iptables \
wireguard-tools \
dumb-init
dpkg \
dumb-init \
iptables \
iptables-legacy \
wireguard-tools
# Use iptables-legacy
RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save
# Expose Ports
EXPOSE 51820/udp

View File

@ -6,5 +6,6 @@
"5": "Many small improvements & feature requests. Enjoy!",
"6": "Many small performance improvements & bug fixes. Enjoy!",
"7": "Improved the look & performance of the upload/download chart.",
"8": "Updated to Node.js v18."
}
"8": "Updated to Node.js v18.",
"9": "Fixed issue running on devices with older kernels."
}

View File

@ -1,5 +1,5 @@
{
"release": 8,
"release": 9,
"name": "wg-easy",
"version": "1.0.0",
"description": "",
@ -25,4 +25,4 @@
"engines": {
"node": "18"
}
}
}