Two VMODs for Varnish Cache and Vinyl Cache. fiftyonedegrees.start() in vcl_init loads a Device Detection data file, then set req.http.x-device = fiftyonedegrees.match_all("HardwareName,BrowserName,PlatformName") in vcl_recv hands the device to your backend.
For IP Intelligence, fiftyonedegrees_ipi.match() looks up client.ip or an address you pass, such as req.http.X-Real-IP behind a load balancer, and reload() keeps the old data if a new file fails.