Dropbox lan sync is now included in Debian and Ubuntu's list of known services, so firewall configuration is as simple as:
sudo ufw allow db-lsp