9

In Linux, I can get and set the range of ephemeral ports through /proc/sys/net/ipv4/ip_local_port_range:

$ cat /proc/sys/net/ipv4/ip_local_port_range
32768   61000

I want to control the ephemeral port range for IPv6, but there seems to be no such file under /proc/sys/net/ipv6.

Does the setting for IPv4 apply to IPv6 connections as well? Or is there another way to set the ephemeral port range for IPv6?

8

IPv6 stack uses the /proc/sys/net/ipv4/ip_local_port_range setting.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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