A gateway is a device that functions as both a router and a modem. They are limited in settings and are often leased from the ISP. The gateway is to ensure all incoming and outgoing systems are correct and unaltered.