Rails Connection Pool With Firewall

Does anyone know how to properly configure rails connection pool to
behave through a firewall? We are seeing a lot of timeout errors with
activerecord (webapp has firewall between it and the firewall) and not
sure how to enable connection pool settings similar to DBCP with
tomcat.

Thanks
AD