Package org.eblocker.server.common.squid
Class SquidConfigController
java.lang.Object
org.eblocker.server.common.squid.SquidConfigController
This class is able to rewrite ACL files which are used in the squid config file; In addition it is able to tell squid, that the configuration changed and
a reload is neccessary.
-
Constructor Summary
ConstructorsConstructorDescriptionSquidConfigController(SquidAcl sslClientsAcl, SquidAcl torClientsAcl, SquidAcl disabledClientsAcl, ConfigurableDeviceFilterAcl filteredClientsAcl, SquidAcl mobileClientsAcl, SquidAcl mobileClientsPrivateNetworkAccessAcl, String vpnAclDirectoryPath, String mimeAclFilePath, String xForwardDomainsAclFilePath, String xForwardIpsAclFilePath, String xForwardIps, String squidClearCertCacheScript, String confTemplateFilePath, String confStaticFilePath, String squidConfigSslExclusiveFile, String squidConfigNoSslExclusiveFile, String confFilePath, String cacheLog, String sslKeyFilePath, String sslCertFilePath, String squidWorkers, String controlBarHostName, String controlBarHostFallbackIp, String dnsLocalNames, ScriptRunner scriptRunner, SquidReloadingService reloadingService, DataSource dataSource, SslService sslService, NetworkInterfaceWrapper networkInterface, JsonWebTokenHandler tokenHandler, NetworkServices networkServices, DeviceService deviceService, ConfigurableDeviceFilterAclFactory squidAclFactory, OpenVpnServerService openVpnServerService, Environment environment, Ip6PrefixMonitor prefixMonitor, FeatureServiceSubscriber featureServiceSubscriber) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidupdateDomainFilteredDevices(Set<Device> domainFilteredDevices) Rewrite the list of MAC addresses for filtered devices.voidEnable/disable providing of JavaScript files to the ICAP server through SquidvoidThis function will reconstruct the squid.conf and reload the squid.voidupdateVpnDevicesAcl(int id, Set<Device> devices)
-
Constructor Details
-
SquidConfigController
@Inject public SquidConfigController(SquidAcl sslClientsAcl, SquidAcl torClientsAcl, SquidAcl disabledClientsAcl, ConfigurableDeviceFilterAcl filteredClientsAcl, SquidAcl mobileClientsAcl, SquidAcl mobileClientsPrivateNetworkAccessAcl, String vpnAclDirectoryPath, String mimeAclFilePath, String xForwardDomainsAclFilePath, String xForwardIpsAclFilePath, String xForwardIps, String squidClearCertCacheScript, String confTemplateFilePath, String confStaticFilePath, String squidConfigSslExclusiveFile, String squidConfigNoSslExclusiveFile, String confFilePath, String cacheLog, String sslKeyFilePath, String sslCertFilePath, String squidWorkers, String controlBarHostName, String controlBarHostFallbackIp, String dnsLocalNames, ScriptRunner scriptRunner, SquidReloadingService reloadingService, DataSource dataSource, SslService sslService, NetworkInterfaceWrapper networkInterface, JsonWebTokenHandler tokenHandler, NetworkServices networkServices, DeviceService deviceService, ConfigurableDeviceFilterAclFactory squidAclFactory, OpenVpnServerService openVpnServerService, Environment environment, Ip6PrefixMonitor prefixMonitor, FeatureServiceSubscriber featureServiceSubscriber)
-
-
Method Details
-
init
public void init() -
updateDomainFilteredDevices
Rewrite the list of MAC addresses for filtered devices. These devices will be included in domain filtering. -
updateVpnDevicesAcl
-
updateMimeTypes
public void updateMimeTypes()Enable/disable providing of JavaScript files to the ICAP server through Squid -
updateSquidConfig
public void updateSquidConfig()This function will reconstruct the squid.conf and reload the squid.
-