How to Secure Smart Home Devices From Network Attacks