Class FirewallConfigurationBase
java.lang.Object
org.eblocker.server.common.network.unix.FirewallConfigurationBase
- Direct Known Subclasses:
FirewallConfigurationIp4,FirewallConfigurationIp6
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFirewallConfigurationBase(java.nio.file.Path configFullPath, java.nio.file.Path configDeltaPath, Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateTablesDiff(List<Table> currentTables, List<Table> newTables) Writes all the table information to the file (final step)voidenable(Set<Device> allDevices, Collection<OpenVpnClientState> anonVpnClients, boolean masquerade, boolean enableSSL, boolean enableEblockerDns, boolean enableOpenVpnServer, boolean enableMalwareSet, java.util.function.Supplier<Boolean> applyFirewallRules) protected abstract IpAddressFiltergetIpAddressFilter(Set<Device> devices) protected abstract TableGeneratorBase
-
Field Details
-
levenshtein
-
activeTables
-
-
Constructor Details
-
FirewallConfigurationBase
public FirewallConfigurationBase(java.nio.file.Path configFullPath, java.nio.file.Path configDeltaPath, Environment environment)
-
-
Method Details
-
getIpAddressFilter
-
getTableGenerator
-
enable
public void enable(Set<Device> allDevices, Collection<OpenVpnClientState> anonVpnClients, boolean masquerade, boolean enableSSL, boolean enableEblockerDns, boolean enableOpenVpnServer, boolean enableMalwareSet, java.util.function.Supplier<Boolean> applyFirewallRules) throws IOException - Throws:
IOException
-
createTablesDiff
Writes all the table information to the file (final step)
-