Skip to content

Commit 9d4ab33

Browse files
committed
Remove iptables-legacy and symlinks
1 parent 1282a2e commit 9d4ab33

File tree

13 files changed

+41
-36
lines changed

13 files changed

+41
-36
lines changed

.github/workflows/call_issue_pr_tracker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request_review:
99
types: [submitted,edited,dismissed]
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
manage-project:
1316
permissions:

.github/workflows/call_issues_cron.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- cron: '20 0 * * *'
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
stale:
912
permissions:

.github/workflows/external_trigger.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: External Trigger Main
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
external-trigger-master:
811
runs-on: ubuntu-latest
@@ -44,8 +47,8 @@ jobs:
4447
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
4548
exit 1
4649
fi
47-
EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
48-
echo "External version: \`${EXT_RELEASE}\`" >> $GITHUB_STEP_SUMMARY
50+
EXT_RELEASE_SANITIZED=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
51+
echo "Sanitized external version: \`${EXT_RELEASE_SANITIZED}\`" >> $GITHUB_STEP_SUMMARY
4952
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY
5053
image="linuxserver/wireguard"
5154
tag="latest"
@@ -101,8 +104,8 @@ jobs:
101104
exit 1
102105
fi
103106
echo "Last pushed version: \`${IMAGE_VERSION}\`" >> $GITHUB_STEP_SUMMARY
104-
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
105-
echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
107+
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
108+
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
106109
exit 0
107110
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"wireguard-tools"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
108111
echo "New version \`${EXT_RELEASE}\` found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
@@ -124,7 +127,7 @@ jobs:
124127
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
125128
else
126129
printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY
127-
echo "New version \`${EXT_RELEASE}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY
130+
echo "New sanitized version \`${EXT_RELEASE_SANITIZED}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY
128131
if [[ "${artifacts_found}" == "true" ]]; then
129132
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
130133
fi
@@ -144,7 +147,7 @@ jobs:
144147
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
145148
--data-urlencode "Submit=Submit"
146149
echo "**** Notifying Discord ****"
147-
TRIGGER_REASON="A version change was detected for wireguard tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
150+
TRIGGER_REASON="A version change was detected for wireguard tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}"
148151
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
149152
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
150153
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/external_trigger_scheduler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '51 * * * *'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
external-trigger-scheduler:
1013
runs-on: ubuntu-latest

.github/workflows/greetings.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Greetings
22

33
on: [pull_request_target, issues]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
greeting:
10+
permissions:
11+
issues: write
12+
pull-requests: write
713
runs-on: ubuntu-latest
814
steps:
915
- uses: actions/first-interaction@v1

.github/workflows/package_trigger_scheduler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '9 11 * * 4'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
package-trigger-scheduler:
1013
runs-on: ubuntu-latest

Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ RUN \
2121
grep \
2222
iproute2 \
2323
iptables \
24-
iptables-legacy \
2524
ip6tables \
2625
iputils \
2726
kmod \
@@ -32,13 +31,6 @@ RUN \
3231
openresolv \
3332
wireguard-tools==${WIREGUARD_RELEASE} && \
3433
echo "wireguard" >> /etc/modules && \
35-
cd /usr/sbin && \
36-
for i in ! !-save !-restore; do \
37-
rm -rf iptables$(echo "${i}" | cut -c2-) && \
38-
rm -rf ip6tables$(echo "${i}" | cut -c2-) && \
39-
ln -s iptables-legacy$(echo "${i}" | cut -c2-) iptables$(echo "${i}" | cut -c2-) && \
40-
ln -s ip6tables-legacy$(echo "${i}" | cut -c2-) ip6tables$(echo "${i}" | cut -c2-); \
41-
done && \
4234
sed -i 's|\[\[ $proto == -4 \]\] && cmd sysctl -q net\.ipv4\.conf\.all\.src_valid_mark=1|[[ $proto == -4 ]] \&\& [[ $(sysctl -n net.ipv4.conf.all.src_valid_mark) != 1 ]] \&\& cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1|' /usr/bin/wg-quick && \
4335
rm -rf /etc/wireguard && \
4436
ln -s /config/wg_confs /etc/wireguard && \

Dockerfile.aarch64

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ RUN \
2121
grep \
2222
iproute2 \
2323
iptables \
24-
iptables-legacy \
2524
ip6tables \
2625
iputils \
2726
kmod \
@@ -32,13 +31,6 @@ RUN \
3231
openresolv \
3332
wireguard-tools==${WIREGUARD_RELEASE} && \
3433
echo "wireguard" >> /etc/modules && \
35-
cd /usr/sbin && \
36-
for i in ! !-save !-restore; do \
37-
rm -rf iptables$(echo "${i}" | cut -c2-) && \
38-
rm -rf ip6tables$(echo "${i}" | cut -c2-) && \
39-
ln -s iptables-legacy$(echo "${i}" | cut -c2-) iptables$(echo "${i}" | cut -c2-) && \
40-
ln -s ip6tables-legacy$(echo "${i}" | cut -c2-) ip6tables$(echo "${i}" | cut -c2-); \
41-
done && \
4234
sed -i 's|\[\[ $proto == -4 \]\] && cmd sysctl -q net\.ipv4\.conf\.all\.src_valid_mark=1|[[ $proto == -4 ]] \&\& [[ $(sysctl -n net.ipv4.conf.all.src_valid_mark) != 1 ]] \&\& cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1|' /usr/bin/wg-quick && \
4335
rm -rf /etc/wireguard && \
4436
ln -s /config/wg_confs /etc/wireguard && \

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ pipeline {
9696
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
9797
env.PULL_REQUEST = env.CHANGE_ID
9898
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./root/donate.txt'
99+
if ( env.SYFT_IMAGE_TAG == null ) {
100+
env.SYFT_IMAGE_TAG = 'latest'
101+
}
99102
}
103+
echo "Using syft image tag ${SYFT_IMAGE_TAG}"
100104
sh '''#! /bin/bash
101105
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
102106
script{
@@ -783,7 +787,7 @@ pipeline {
783787
docker run --rm \
784788
-v /var/run/docker.sock:/var/run/docker.sock:ro \
785789
-v ${TEMPDIR}:/tmp \
786-
ghcr.io/anchore/syft:v1.26.1 \
790+
ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \
787791
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
788792
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
789793
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
@@ -893,6 +897,7 @@ pipeline {
893897
-e WEB_AUTH=\"${CI_AUTH}\" \
894898
-e WEB_PATH=\"${CI_WEBPATH}\" \
895899
-e NODE_NAME=\"${NODE_NAME}\" \
900+
-e SYFT_IMAGE_TAG=\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \
896901
-t ghcr.io/linuxserver/ci:latest \
897902
python3 test_build.py'''
898903
}

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
66
[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord "realtime support / chat with the community and the team.")
77
[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.")
8-
[![Fleet](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Fleet)](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
98
[![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.")
109
[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Supporters&logo=open%20collective)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
1110

@@ -22,7 +21,6 @@ Find us at:
2221
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
2322
* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.
2423
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
25-
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
2624
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
2725
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
2826

@@ -54,11 +52,10 @@ The architectures supported by this image are:
5452
| :----: | :----: | ---- |
5553
| x86-64 || amd64-\<version tag\> |
5654
| arm64 || arm64v8-\<version tag\> |
57-
| armhf || |
5855

5956
## Application Setup
6057

61-
During container start, it will first check if the wireguard module is already installed and loaded. Kernels newer than 5.6 generally have the wireguard module built-in (along with some older custom kernels). However, the module may not be enabled. Make sure it is enabled prior to starting the container.
58+
During container start, it will first check if the wireguard module is already installed and loaded. All currently supported kernels should have the wireguard module built-in (along with some older custom kernels). However, the module may not be enabled. Make sure it is enabled prior to starting the container.
6259

6360
This can be run as a server or a client, based on the parameters used.
6461

@@ -388,7 +385,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
388385

389386
## Versions
390387

391-
* **17.06.25:** - Rebase to Alpine 3.22.
388+
* **15.07.25:** - Rebase to Alpine 3.22. Remove iptables-legacy shim.
392389
* **01.01.25:** - Deprecate legacy branch.
393390
* **20.12.24:** - Rebase to Alpine 3.21.
394391
* **13.08.24:** - Add `errors` plugin to default Corefile.

0 commit comments

Comments
 (0)