Yeah, the "modem/router" (assuming DSL modem) can't be filtered and the fax machine has to be. You need a Y splitter to separate the lines and then filter the one going to the fax machine. You could daisy chain a phone through the fax machine (since it also would need to be filtered) but not the DSL modem.
EDIT: typo