A secure inter-domain communication for IoT devices