1970 Duster project in Sweden

This foam gasket that sits between the master cylinder and the brake booster just fell apart when I removed it. Can one order one of these? Or maybe make one myself? Is it there to keep dust and dirt out?

IMG_3010.jpeg