Firewall settings on modem : r/HomeNetworking
That turns the NAT off and puts the firewall in L2 (“bump in the wire”) mode. I''d strongly recommend also putting a “real” firewall like a pfSense (prebuilt for $100 from NetGate) between the modem and the