You can work freelance as long as you don’t deal with any haram business and you don’t support injustice. For example, working with a company that sells alcohol is haram. Working with a company that directly supports that Israeli government would not be permissible. Otherwise you can do freelance work. If you don’t know what the person you are working with does, then you don’t have to investigate.