Firewalls in toxicology function by incorporating physical barriers, procedural controls, and monitoring systems. Physical barriers might include containment units or isolation rooms, while procedural controls could involve strict protocols for handling and disposal of toxic materials. Monitoring systems are used to detect breaches or leaks, ensuring immediate action to contain any spillages.