If you are talking about the OneDrive desktop app, it requires you to open the TCP 80 and TCP 443 ports. There are several destination hosts that need these two ports to be opened on your computer. For example, *.onedrive.com, onedrive.live.com, login.live.com, etc., require TCP 80, whereas some other destination hosts require TCP 443.