Interface NetworkServices

All Known Implementing Classes:
NetworkServicesBase, NetworkServicesUnix

public interface NetworkServices
Instances of this class should know how to configure, start and stop network services of the OS.
  • Method Details

    • getCurrentNetworkConfiguration

      NetworkConfiguration getCurrentNetworkConfiguration()
    • enableArpSpoofer

      void enableArpSpoofer()
    • disableArpSpoofer

      void disableArpSpoofer()
    • enableDhcpServer

      void enableDhcpServer(boolean start)
    • configureDhcpServer

      void configureDhcpServer(NetworkConfiguration configuration)
    • disableDhcpServer

      void disableDhcpServer()
    • enableDhcpClient

      void enableDhcpClient()
    • enableStaticIp

      void enableStaticIp(NetworkConfiguration configuration)
    • configureEblockerDns

      void configureEblockerDns(NetworkConfiguration configuration)
    • setNameserverAddresses

      void setNameserverAddresses(NetworkConfiguration configuration)
    • updateIp6State

      void updateIp6State()
    • enableFirewall

      void enableFirewall(boolean masquerade, boolean enableSSL, boolean enableOpenVpnServer, boolean enableMalwareSet)
      Write the firewall configuration
      Parameters:
      masquerade - should SNAT or masquerading be enabled?
    • applyNetworkConfiguration

      void applyNetworkConfiguration(NetworkConfiguration networkConfiguration)
    • healDevice

      boolean healDevice(Device device)
      Restore "normal" ARP cache of device
      Parameters:
      device -
      Returns:
      true if ARP messages were sent
    • updateGateway

      void updateGateway()
      Retrieve the OS's current gateway and store it
    • getDHCPActive

      boolean getDHCPActive()
      Retrieve DHCP-status
      Returns:
      true if the eBlocker is the DHCP server
    • addListener

      void addListener(NetworkChangeListener listener)
    • getNetworkIp6Configuration

      NetworkIp6Configuration getNetworkIp6Configuration()
    • updateNetworkIp6Configuration

      void updateNetworkIp6Configuration(NetworkIp6Configuration networkIp6Configuration)