Offramps along Interstate 5, a major north-south artery, were closed as flames raced along hilltops and into rugged canyons.