-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::Access::Manager
QuantumGate::Access::Manager
is a class that represents the Access Manager. Through the Access Manager it's possible to configure a number of different access and security settings, allowing you to control which peers on the QuantumGate network are allowed to connect to and communicate with your local instance. By default the local instance is locked down as much as possible and you need to explicitly allow connections from IP address ranges and peers.
A reference to the Access Manager of a QuantumGate instance can be retrieved through the QuantumGate::Local::GetAccessManager
function.
Name | Description |
---|---|
GetIPAllowed |
Checks whether or not an IP address is allowed to connect to the instance. |
By default all IP addresses are blocked on the local instance unless a range (or ranges) are allowed through.
Name | Description |
---|---|
AddIPFilter |
Adds an IP filter to the instance. |
RemoveIPFilter |
Removes an IP filter from the instance. |
RemoveAllIPFilters |
Removes all IP filters from the instance. |
GetAllIPFilters |
Returns a collection of all IP filters on the instance. |
By default there are no IP subnet limits.
Name | Description |
---|---|
AddIPSubnetLimit |
Adds an IP subnet limit to the instance. |
RemoveIPSubnetLimit |
Removes an IP subnet limit from the instance. |
GetAllIPSubnetLimits |
Returns a collection of all IP subnet limits on the instance. |
QuantumGate automatically adds IP addresses and maintains their reputation as soon as a peer connects to the local instance. Use these functions to add, set and retrieve reputations for IP addresses.
Name | Description |
---|---|
SetIPReputation |
Sets the reputation details for an IP address. |
ResetIPReputation |
Resets the reputation for an IP address to the maximum positive score. |
ResetAllIPReputations |
Resets the reputations of all IP addresses to the maximum positive score. |
GetAllIPReputations |
Returns a collection of all IP reputations. |
By default no peers are allowed unless they have explicitly been added, and/or, unless the Peer Access Default is configured to allow peers to connect by default.
Name | Description |
---|---|
AddPeer |
Adds access settings for a peer to the instance. |
UpdatePeer |
Updates the access settings for a peer on the instance. |
RemovePeer |
Removes access settings for a peer from the instance. |
RemoveAllPeers |
Removes all peer access settings from the instance. |
GetPeerAllowed |
Returns whether or not a peer is allowed to connect to the instance. |
SetPeerAccessDefault |
Sets the default peer access settings for the instance. |
GetPeerAccessDefault |
Returns the default peer access settings for the instance. |
GetAllPeers |
Returns a collection of all peer access settings for the instance. |