Oseltamivir should be administered within 48 hours of the onset of flu symptoms for optimal effectiveness. It is also recommended for prophylactic use in certain scenarios, such as during flu outbreaks in closed environments like nursing homes or for individuals who have been exposed to the flu virus but have not yet shown symptoms.