Cannot connect over WAN

I am having difficulty connecting to my other devices at different location. Both setup have pfSense as the router. I have 4 machines, 2 at each location. Machines can sync locally, but not over WAN.

Can someone guide me on the proper setup for the pfSense? Thanks.

Read the firewall section in the wiki/faq