The router, at least the common home network device that we usually call a router, is the piece of network hardware that allows communication between your local home network — like your personal computers and other connected devices — and the internet.
A router is the first line of security from intrusion into a network. Enabling the highest level of security on the router is the best way to keep your computer system and information safe from attack