Preventing double tunneling using device profile