0

Being new to webservers, I need to clarify a concept. Apologies if this is a less-than-stellar question.

It's recommended to set net.ipv4.ip_local_port_range = 1024 65535 in sysctl.conf.

However, for a specific web application, nginx is programmed to listen at port 80 and 443 (for example). Then in such a scenario, why does setting the port range between 1024 to 65535 matter?

Hassan Baig
  • 2,325
  • 12
  • 29
  • 48

1 Answers1

3

The net.ipv4.ip_local_port_range value is used to set the port range for outgoing connections. You generally only have to make changes to this on busy systems. Port 80 and port 443 are where webservers generally listen.

user9517
  • 115,471
  • 20
  • 215
  • 297