This tubular gasket effectively seals gaps around windows and doors while it cushions.  It can be nailed, tacked or stapled in place.