Save iptable rules

Change-Id: I5c1a72c901daec388987385d31718693080e85e8
Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
Toni Saario
2024-06-13 14:57:55 +03:00
committed by Simo Fält
parent 4ee798b6ef
commit 5207b5eafa
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
#Copyright (C) 2023 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# Requires iptables-persistent apt package
sudo mkdir /etc/iptables
sudo bash -c "iptables-save > /etc/iptables/rules.v4"

View File

@@ -234,6 +234,8 @@ installPackages+=(cifs-utils)
installPackages+=(uml-utilities)
# used for reading vcpkg packages version, from vcpkg.json
installPackages+=(jq)
# To save iptables rules
installPackages+=(iptables-persistent)
installPackages+=(patchelf)

View File

@@ -0,0 +1,6 @@
#!/bin/bash
#Copyright (C) 2023 The Qt Company Ltd
#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
BASEDIR=$(dirname "$0")
"$BASEDIR/../common/linux/save_iptables.sh"