FreeRADIUS Not Storing Cache Data in Redis

Luca Borruto luca.borruto at agicap.com
Tue Feb 11 11:56:04 UTC 2025


Hi everyone,

We are currently facing an issue with FreeRADIUS where no cache entries are
being created in Redis.
We’ve tested the Redis connection, authentication, and database selection,
but when we run KEYS * in Redis, it returns an empty array.

When running FreeRADIUS in debug mode (radiusd -X), we do not see any
Redis-related errors, yet the expected data is not found in Redis.
I configured redis, cache, cache_tls and cache_eap modules for testing
purpose, and it's still a bit confusing on which one to enable for
production (we use only EAP-TLS with Radsec):

*mods-enabled/redis:*

redis {
	server = raddb-redis-master.radius.svc.cluster.local
	port = 6379
	password = root
}

*mods-enabled/cache:*

cache cache_redis {
    driver = "rlm_cache_redis"
    key = "%{control:State}"
    ttl = 43200
    redis {
        server = raddb-redis-master.radius.svc.cluster.local
        port = 6379
        password = root
    }
    update {
        &reply: += &reply:
        &control:State := &request:State
    }
}

*mods-enabled/cache_tls:*

cache cache_tls_session {
    driver = rlm_cache_redis
	key = &Session-Id
	ttl = 43200
	    redis {
        server = raddb-redis-master.radius.svc.cluster.local
        port = 6379
        password = root
    }
	update {
		&reply:TLS-Session-Data := &session-state:TLS-Session-Data
	}
}

*mods-enabled/cache_eap:*

cache cache_eap {
    driver = rlm_cache_redis
    key = "%{control:State}"
    ttl = 43200
        redis {
        server = raddb-redis-master.radius.svc.cluster.local
        port = 6379
        password = root
    }
    update reply {
        &reply += &reply
        &control:State := &request:State
    }
}

Is there anything wrong with our configuration that could be preventing
data from being stored in Redis?

Any help would be greatly appreciated. Please let me know if any additional
logs or details would be helpful.

Best regards,

Luca,


More information about the Freeradius-Users mailing list