mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Save iptable rules
Change-Id: I5c1a72c901daec388987385d31718693080e85e8 Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
8
coin/provisioning/common/linux/save_iptables.sh
Executable file
8
coin/provisioning/common/linux/save_iptables.sh
Executable 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"
|
||||
@@ -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)
|
||||
|
||||
|
||||
6
coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/99-save_iptables.sh
Executable file
6
coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/99-save_iptables.sh
Executable 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"
|
||||
Reference in New Issue
Block a user