Let's say your modem has the internal IP address of 192.168.2.1, and serves the IP range 192.168.2.2 - 255
Let's say your router has the internal IP address of 192.168.1.1, and serves the IP block of 192.168.1.2 - 255
You may have to set a static route between the two networks in order to be able to access 192.168.2.1, and/or you may have to change the IP address of your client NIC to a static IP address in the modem's range, for example 192.168.2.100 to be able to connect to the modem's IP.
It may be easier to just configure the modem so that it allows all traffic to your router, set the router's "external" IP to "DMZ", so that all ports are forwarded to it. That way, you wouldn't have to reconfigure the modem much past the initial setup, you only have to configure that one client (your router).
Bookmarks