Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are going to be using PHP/OCI8 to connect to a remote Oracle Instance. My problem is the need to define the outbound port usage from PHP so the firewall rules that need changed will allow the data transfer back from Oracle.

Anything run outbound with PHP has variable port usage in the 50000 range. Have seen from 50000 - 53500 so far.

That wide of a range will not fly with the firewall team. How can I go about defining a singular port (or defined range of ports) for PHP/OCI8 to use??


share|improve this question
up vote 1 down vote accepted

I'm a little confused why the outbound port makes a difference. For most all applications, only the destination port is "well known". For example, you might make dozens of connections to port 80s all over the world, but your outbound (source) port will be almost at random. I can't fathom a firewall policy that would place any importance on the source port.

share|improve this answer
I am in agreement, my assumption was that the data flow back would traverse the existing connection not require additional rules around the originating port, but I am being asked for the specifics... Thx for the reply. – Manzo Oct 10 '11 at 16:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.