Access samba over wan

How do I access a samba server over a wan with routers used as the gateways between the lans

If the routers are already set up to route between LANs, SMB is just another protocl like any other, it should work out of the box. What problems are you having?