Jobs and Geography

While I’ve been in school. I’ve made some money as a freelance writer. I write blog posts, marketing copy, and things like that. I know that freelancers don’t get some perks that full-time employees get (health insurance, etc.), but I’m thinking that I’m going to try to make it as a freelancer for a while when I graduate. And a big part of why I want to do this is that I want to work remotely and travel.

I’m very confident in my choice of career, but I’m not as sure about how I’ll manage the travel and remote work from a legal perspective. For instance, is it legal to work in a foreign country for an employer in the US?