It is not necessary to run the router through a gateway. You can set up the router to connect directly to the internet. The router should be connected using its WAN port, even if it connects through another router. If the router is connected to the internet through a wireless link that may cause problems, like the hotspot won’t start.