Add UFW rules. Fix key generation.