Hey tangor: RT(Fabulous)M :)
Note: GDPR (General Data Protection Regulation) comprises 99 Articles and 173 Recitals. The Recitals provide additional detail and insight into the Articles.
Recital 47 largely clarifies the weighing of interests to determine if consent is required:
The processing of personal data to the extent strictly necessary and proportionate for the purposes of ensuring network and information security, i.e. the ability of a network or an information system to resist, at a given level of confidence, accidental events or unlawful or malicious actions that compromise the availability, authenticity, integrity and confidentiality of stored or transmitted personal data, and the security of the related services offered by, or accessible via, those networks and systems, by public authorities, by computer emergency response teams (CERTs), computer security incident response teams (CSIRTs), by providers of electronic communications networks and services and by providers of security technologies and services, constitutes a legitimate interest of the data controller concerned.
This could, for example, include preventing unauthorised access to electronic communications networks and malicious code distribution and stopping 'denial of service' attacks and damage to computer and electronic communication systems. As a matter of transparency one should disclose that, for example, IP address is collected and how used. However, for the purpose of this thread with IP collected in log files, referenced in i.e. .htaccess, iptables, etc., not otherwise stored, associated, shares/sold, visitor opt-in is NOT required.
Note: for a quick overview:
*
Does an organisation need my consent? [ico.org.uk], ICO (Information Commissioner's Office, UK)
Note: a BS in gobbledygook is pretty much a requirement, a post graduate degree in bureaucratese is recommended.