mirror of
https://github.com/jie65535/DaemonService.git
synced 2024-07-27 19:04:56 +08:00
update
增加手动移出白名单 连续连接移出白名单
This commit is contained in:
25
ipsechelper.h
Normal file
25
ipsechelper.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef IPSECHELPER_H
|
||||
#define IPSECHELPER_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
class IpsecHelper
|
||||
{
|
||||
public:
|
||||
IpsecHelper() = delete;
|
||||
IpsecHelper(IpsecHelper&) = delete;
|
||||
IpsecHelper& operator=(const IpsecHelper&) = delete;
|
||||
|
||||
|
||||
static void addItemToWhitelist(QString ip, int port);
|
||||
static void removeItemFromWhiteList(QString ip, int port);
|
||||
|
||||
static void addItemToBlackList(QString ip, int port);
|
||||
static void removeItemFromBlackList(QString ip, int port);
|
||||
|
||||
static void addItemToBlackList(int port);
|
||||
private:
|
||||
static void ExeCmd(QString cmd, QString filterlist, QString srcaddr, int port);
|
||||
};
|
||||
|
||||
#endif // IPSECHELPER_H
|
||||
Reference in New Issue
Block a user