Router Security   Website by     
Michael Horowitz 
Home | Site Index | Router Bugs | Security Checklist | Tests | Resources | Stats | About | Search |
I spoke about Router Security at the O'Reilly Security Conference in New York City on Nov. 1, 2017. See a PDF of the slides

This site focuses on the security of routers. Period. If you are interested in faster WiFi, look elsewhere. The site covers configuration changes to make a router more secure, and, picking a router that is more secure out of the box.

Why devote an entire site to router security?

I used to be like you. That is, I would buy a router, it would work fine and I would ignore it for years. But, anyone who follows tech news has no doubt heard of assorted router flaws. After some huge flaws, affecting millions of routers, caught my attention, I started following the topic more closely. As a Defensive Computing guy, I eventually realized that I needed to upgrade my own router security and get more up to speed on the topic.

If your router gets infected with malware, or re-configured in a malicious way, most people would never know. There is no Norton AntiVirus for routers.

Non-techies can start at the Introduction to Routers page, which discusses what a router is conceptually, describes the hardware and the many ways to communicate with a router.

The list of configuration changes to increase router security is far from complete. The topic on selecting a secure router is complete, as is the Security Checklist page, which lists the security features to look for when buying a router. The router bugs page will never be complete, but that's not the point. It exists to backup my argument - don't buy a consumer router.

Router security may be a dull and boring topic, but it's important. For proof, see what can happen if your router gets hacked.

This site has NO ADS. If you see ads, either your browser, computer or router is infected with adware.

Conference Presentations

I spoke on Securing a Home Router at the HOPE conference in July 2014. This website grew out of that presentation. It's a work in progress. A PDF of the presentation is available at (last updated Oct. 4, 2014). Audio is available at (thanks to 2600). An article about the talk appeared in Toms Guide.

I spoke again about Router Security, at the O'Reilly Security Conference on Nov. 1st, 2017. The talk was very different from the first one. See a PDF of the slides.

Picking a Router

The first step towards a secure router is choosing a router.

Many people use the device given them by their Internet Service Provider (ISP) which I think is a bad idea for a number of reasons.

The next decision is buying a consumer router or a business class device. Don't buy a consumer router.

I am not alone in pointing out the sad state of router software/firmware.

Which router do I recommend? The Pepwave Surf SOHO router from Peplink. My only relationship with Peplink is that of a customer.

How secure can a router get? Only as secure as its included features allow. For a list of router security features see my Security Checklist. The most expert person in the world can only make a router as secure as the included features allow.

Finally, some thoughts on Apple routers and Google Wifi and OnHub routers and mesh routers.

Secure Router Configuration - Start With This

  1. Change the password used to access the router. Anything but the default should be OK, but don't use a word in the dictionary.
  2. Wi-Fi encryption should be WPA2 with AES and your Wi-Fi password should be at least 14 characters long
  3. Turn off UPnP and NAT-PMP to protect both yourself and the rest of the Internet.
  4. Be smart about choosing an SSID (network name)
  5. Use a password protected Guest Network whenever possible, not just for guests but for IoT devices too.
  6. Turn off WPS
  7. Remote Administration is probably off, but verify that it is disabled
  8. Test Your Router for open ports using some online testers
  9. Periodically check for new firmware
  10. Eat your vegetables

Secure Router Configuration - the FULL list

  1. If the router is new, see my suggestions for setting up a new router. Basic plan: make the most obvious few changes with the router off-line, go online behind another router to get the latest firmware, then make the rest of the changes.
  2. Change the password used to access the router (this is not a WiFi password). Never use the default router password. Don't use a word in the dictionary. See my router password advice.
  3. If the router lets you change the userid used to logon to the router, change it
  4. Selecting a unpopular range of IP Addresses helps prevent many router attacks. And, while you are at it, set up DHCP.
  5. If any of your Wi-Fi networks (a router can create more than one) use a default SSID (network name) then change it. Do not pick a name that makes it obvious that the network belongs to you. More...
  6. There is more to encryption than just choosing WPA2. To begin with use AES, not TKIP. Also, Wi-Fi passwords need to be long enough to stall brute force attacks, my best guess is that 14 characters should be sufficient. And, you really should not use a password anyone has ever used before, ever. More...
  7. The Ubiquiti AmpliFi mesh router defaults to using the same password for Wi-Fi and administering the router system. Regardless of the router being used, don't do this; each function should have its own password.
  8. Change the DNS servers that your router gives out to attached devices. ISP assigned DNS servers are usually the worst option. Change it for these reasons: to use a company that specializes in DNS, to get some extra security via DNS, to have never changing IP addresses, to have an easy to remember IP address. Perhaps the easiest IP address to remember for a DNS server is from Quad 9. Its backup is I also like OpenDNS at and Some companies offer child friendly DNS servers. I am working on a DNS Server page.
  9. Turn off WPS
  10. Turning off features you are not using reduces the attack surface. Among features that should probably be disabled are Remote Administration (aka Remote Management, Remote GUI or Web Access from WAN), SNMP, UPnP, NAT-PMP, Telnet, etc. Especially turn off UPnP.
  11. If you need Remote Administration, there are a number of ways to make it more secure. See the Security Checklist page for more.
  12. Many routers offer Remote Administration via a cloud service rather than the old fashioned way which required directly logging in to the router. If possible turn this off. With it active, you are trusting every employee of the router vendor.
  13. Guest networks are your best friend. Use them not only for visitors but also for IoT devices. They should be password protected. Guest networks are usually, but not always, isolated from the main network. Review all the configuration options your router offers for the Guest network to insure they are isolated. The Security Checklist page has a list of options you might find.
  14. Network Isolation/segmentation: Guest networks are merely the appetizer, using VLANs for network isolation is the actual meal. See the VLAN page for more.
  15. For routers with a web interface, lock down access to the router from the LAN side. The Security Checklist page offers a dozen possible options (see the Local Administration topic). For routers that use a mobile app for administration, think about locking down access to the mobile app. This may require signing out.
  16. Write down the critical information on a piece of paper and tape it to the router, face down. Include the Wi-Fi network names (SSIDs) and passwords, the router userid/password and the IP address of the router.
  17. Turn off Ping reply. Sadly, different routers use different terminology for this. To test it, have someone ping your public IP address from outside your network.
  18. Turn off wireless networks when not in use. Some routers let you schedule this, others have a physical Wi-Fi on/off button, others have a mobile app. In the worst case, you have to login in to the router web interface to disable the Wi-Fi. In that case, a browser bookmark can ease the pain.
  19. Test if your router supports HNAP. If so, it should be replaced.
  20. Your modem is a computer too. Your router may be able to block access to the modem from all devices on the LAN. I blogged about this. See part 1 and part 2.
  21. If your router supports outgoing firewall rules, block the ports used by Windows file sharing. You may also want to prevent any network printers from making any outbound connections. This way if a printer gets hacked, it can't phone home.
  22. If the router can send email when certain errors occur, configure this feature.
  23. Try to prevent your router from spying on you. If you own a Netgear router, be aware that they added "analytics" with firmware updates released in April 2017. If you don't want Netgear watching your network, you need to login to the router and disable these analytics. For more on this, see the Bugs page for July 2017. Likewise, Asus and other routers include anti-malware software that may also be watching you. For more on Asus and their partnership with Trend Micro see the Bugs page from May 2017 and look for "Privacy issues with Trend Micro software in Asus routers" Trend Micro software is in other routers too and other anti-virus companies are also partnering with router vendors.
  24. The Test Your Router page has many ways to kick the tires on your router. One thing to look for is open ports. At Steve Gibson's ShieldsUP! site (click the gray Proceed button), start with the Common Ports test and pay special attention to the SSH (22) and Telnet (23) ports as these services are frequently abused by bad guys. The only good status for any port is Stealth (assuming remote administration is disabled). Next, do the All Service Ports test and finally, do the Instant UPnP Exposure Test (orange button).
  25. Test your router with my Shodan Query My Router page. It generates a Shodan query for your public IP address (added Feb. 21, 2018)
  26. The router tests mentioned above are only a partial solution. For the most thorough test, connect the WAN port of a router to be tested (inside router) to a LAN port on another router (outside router). Then, from a computer connected to the outside router, scan of the WAN side of the inside router using NMAP looking for open ports. This lets you test all 65,535 TCP ports and all 65,535 UDP ports.
  27. Eat your vegetables and exercise too


  1. When you are all done making configuration changes to a router, it is a good idea to back them up. This way, should you ever have to reset the router, you can easily import/restore the current settings. Many routers can export the current settings to a file. The mesh routers that I have used can not. On my favorite router, the Pepwave Surf SOHO, settings are backed up with System -> Configuration and click the Download button.

  2. If the router does not self-update, then check for new firmware every month or two. Also, register it with the hardware manufacturer on the chance that they notify you of firmware updates. Netgear, for example, has a security newsletter that announces bug fixes. Even if the router does self-update, check every now and then that the self-updating system is actually working. More...

  3. Every router can display a list of attached devices. Check this every now and then to be sure that you know what every device is. Better routers will let you assign names to each device (Susans iPad, Bobs laptop, Georges iPhone). Check that you are seeing all devices, not just those that are active at the moment or just those using DHCP. Some mobile apps for routers show you information about devices that have recently been on your network, even if they are not currently using it. If you have more than one SSID (you should) a good router will show you which SSID each wireless device is connected to. The Surf SOHO does this.

  4. A common attack against routers is to change the DNS servers. You need to know what the DNS servers should be (discussed above). Many websites report the currently used DNS servers. For example, Pick one or two and get in the habit of checking that your DNS servers have not changed. Consider making one of these sites your web browser home page to insure that you check it periodically. Yes, it is possible for a computer to be manually configured with DNS servers of its own and ignore the ones in the router. This would be a good thing to do on a laptop that you travel with and use on public Wi-Fi networks. It can insure you use known, trusted DNS servers. On the other hand, Peplink routers can force all attached devices to use the DNS servers in the router, even when the clients are configured to use other DSN servers. So, its complicated.

  5. If the router has any logging facilities, check the logs every now and then.

For other Router Security opinions, I maintain a list of articles. Many stink, the good ones are noted in bold.

This page was last updated: February 21, 2018 6PM CT     
Created: January 30, 2015
Viewed 525,962 times since January 31, 2015
(469/day over 1,121 days)     
Website by Michael Horowitz      
Feedback: routers __at__ michaelhorowitz dot com  
Copyright 2015 - 2018