Class FirewallConfigurationBase

java.lang.Object
org.eblocker.server.common.network.unix.FirewallConfigurationBase
Direct Known Subclasses:
FirewallConfigurationIp4, FirewallConfigurationIp6

public abstract class FirewallConfigurationBase extends Object
  • Field Details

  • Constructor Details

    • FirewallConfigurationBase

      public FirewallConfigurationBase(java.nio.file.Path configFullPath, java.nio.file.Path configDeltaPath, Environment environment)
  • Method Details

    • getIpAddressFilter

      protected abstract IpAddressFilter getIpAddressFilter(Set<Device> devices)
    • getTableGenerator

      protected abstract TableGeneratorBase 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

      protected String createTablesDiff(List<Table> currentTables, List<Table> newTables)
      Writes all the table information to the file (final step)