There are some "IoT routers" being delivered by vendors such as Dell and other industry players who are doing deep packet inspection style firewalls for industrial protocols such as modpus tcp, Ethernet/IP, etc. A Google search for IOT routers will show vendors are actually trying to get into this space.
However, deep packet inspection can come with a significant processing overhead. Good capacity planning would be required when looking at this approach.