static ip vpn through modem not working

That’s a separate can of worms then, you need a complicated workaround to make L2TP/IPsec work in this case.