Add code license
This commit is contained in:
parent
5c9d45a8a8
commit
427b43c99b
4 changed files with 56 additions and 7 deletions
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright (c) 2024 AmneziaVPN
|
||||||
|
// This file has been modified for AmneziaVPN
|
||||||
|
//
|
||||||
|
// This file is based on the work of the Private Internet Access Desktop Client.
|
||||||
|
// The original code of the Private Internet Access Desktop Client is copyrighted (c) 2023 Private Internet Access, Inc. and licensed under GPL3.
|
||||||
|
//
|
||||||
|
// The modified version of this file is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this file. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "linuxfirewall.h"
|
#include "linuxfirewall.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright (c) 2024 AmneziaVPN
|
||||||
|
// This file has been modified for AmneziaVPN
|
||||||
|
//
|
||||||
|
// This file is based on the work of the Private Internet Access Desktop Client.
|
||||||
|
// The original code of the Private Internet Access Desktop Client is copyrighted (c) 2023 Private Internet Access, Inc. and licensed under GPL3.
|
||||||
|
//
|
||||||
|
// The modified version of this file is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this file. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#ifndef LINUXFIREWALL_H
|
#ifndef LINUXFIREWALL_H
|
||||||
#define LINUXFIREWALL_H
|
#define LINUXFIREWALL_H
|
||||||
|
|
||||||
|
|
@ -10,7 +24,6 @@
|
||||||
struct FirewallParams
|
struct FirewallParams
|
||||||
{
|
{
|
||||||
QStringList dnsServers;
|
QStringList dnsServers;
|
||||||
// QSharedPointer<NetworkAdapter> adapter;
|
|
||||||
QVector<QString> excludeApps; // Apps to exclude if VPN exemptions are enabled
|
QVector<QString> excludeApps; // Apps to exclude if VPN exemptions are enabled
|
||||||
QStringList allowAddrs;
|
QStringList allowAddrs;
|
||||||
QStringList blockAddrs;
|
QStringList blockAddrs;
|
||||||
|
|
@ -73,5 +86,4 @@ public:
|
||||||
static void updateBlockNets(const QStringList& servers);
|
static void updateBlockNets(const QStringList& servers);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // LINUXFIREWALL_H
|
#endif // LINUXFIREWALL_H
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright (c) 2024 AmneziaVPN
|
||||||
|
// This file has been modified for AmneziaVPN
|
||||||
|
//
|
||||||
|
// This file is based on the work of the Private Internet Access Desktop Client.
|
||||||
|
// The original code of the Private Internet Access Desktop Client is copyrighted (c) 2023 Private Internet Access, Inc. and licensed under GPL3.
|
||||||
|
//
|
||||||
|
// The modified version of this file is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this file. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "macosfirewall.h"
|
#include "macosfirewall.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
|
// Copyright (c) 2024 AmneziaVPN
|
||||||
|
// This file has been modified for AmneziaVPN
|
||||||
|
//
|
||||||
|
// This file is based on the work of the Private Internet Access Desktop Client.
|
||||||
|
// The original code of the Private Internet Access Desktop Client is copyrighted (c) 2023 Private Internet Access, Inc. and licensed under GPL3.
|
||||||
|
//
|
||||||
|
// The modified version of this file is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this file. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#ifndef MACOSFIREWALL_H
|
#ifndef MACOSFIREWALL_H
|
||||||
#define MACOSFIREWALL_H
|
#define MACOSFIREWALL_H
|
||||||
|
|
||||||
|
|
@ -9,7 +23,6 @@
|
||||||
struct FirewallParams
|
struct FirewallParams
|
||||||
{
|
{
|
||||||
QStringList dnsServers;
|
QStringList dnsServers;
|
||||||
// QSharedPointer<NetworkAdapter> adapter;
|
|
||||||
QVector<QString> excludeApps; // Apps to exclude if VPN exemptions are enabled
|
QVector<QString> excludeApps; // Apps to exclude if VPN exemptions are enabled
|
||||||
|
|
||||||
QStringList allowAddrs;
|
QStringList allowAddrs;
|
||||||
|
|
@ -34,9 +47,6 @@ struct FirewallParams
|
||||||
bool allowVpnExemptions; // Exempt specified traffic from the tunnel (route it over the physical uplink instead)
|
bool allowVpnExemptions; // Exempt specified traffic from the tunnel (route it over the physical uplink instead)
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Break out firewall handling to a base class that can be used directly
|
|
||||||
// by the base daemon class, for some common functionality.
|
|
||||||
|
|
||||||
class MacOSFirewall
|
class MacOSFirewall
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -59,5 +69,4 @@ public:
|
||||||
static void installRootAnchors();
|
static void installRootAnchors();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // MACOSFIREWALL_H
|
#endif // MACOSFIREWALL_H
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue