No it is not illegal as many already have said and as this initial post already explain. You can have as many offshore companies and offshore bank accounts as you like just make sure you inform your local tax office about it if you want to stay legal 😉