In all likelihood, the 'modem' is a router and each apartment is on a switch port routed through the ISP's router.
A firewall-only solution will protect the devices that you have connected to the ethernet port in your apartment. Juniper, Xophos, etc.
A firewall-only solution is not typical of consumer-grade equipment. If double-NATing is not a problem, your own router is the solution.