Configuring firewalls and IDS/IPS together requires you to consider several factors. Placement of the devices, for example, should be based on network size, structure, and security objectives. This could include placing them at the perimeter, between network segments, or within specific zones. The type of firewall and IDS/IPS should also be determined based on the environment and needs, such as network-based, host-based, or cloud-based. Additionally, integration of the devices must be established to ensure that they can communicate and cooperate with each other and other security components. This includes using protocols, standards, and interfaces like IPsec, SNMP, or API. A centralized management tool such as SIEM can help collect and analyze data from the firewalls and IDS/IPS. Lastly, optimization of the devices is necessary to achieve a balance between security and performance. This includes adjusting settings and parameters to match the security policy or requirements as well as testing and evaluating them regularly. Updates with patches or features should also be applied when necessary.