0

I want to know the following: (exam type question)

When you have a client-server system, that uses uncommon ports (e.g. in range 48000 - 49000), and you have a firewall between the client and the server, which ports do you need to open on this firewall? Here are the options:

  • You need to open ports for communication from the client to the server
  • You need to open ports for communication from the server to the client
  • You need to open ports for communication from the server to the client and from the client to the server
  • No need to open any ports

NOTE: The traffic between the Server and the Client application is TCP/IP and is socket-based.

What would be the correct answer here?

2
  • 1
    The question is too vague to answer. Is the firewall stateful or stateless? Is the system using TCP, UDP, or both? You can only answer by making all kinds of guesses. Oct 20, 2013 at 13:08
  • This is actually a question from an Exam, and the only thing I replaced was the name of the server and client software...So I do not know if it is stateful or stateless Oct 20, 2013 at 14:12

1 Answer 1

1

Assuming the server is not behind a NAT, the option "You need to open ports for communication from the client to the server" would be correct. Meaning you have to open the ports server side. Understand a firewall exactly as a wall. If there is a wall serverside, the clients cannot communicate with the server. That said, you have to "remove" this wall for your specific port.

2
  • 2
    What if the firewall is stateless? How will the server communicate with the client? Oct 20, 2013 at 13:08
  • thank you Doon. Appreciate your answer. This is actually a question from an Exam, and the only thing I replaced was the name of the server and client software...So I do not know if it is stateful or stateless Oct 20, 2013 at 13:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .