/etc/sysctl.confの末尾に以下を追加。
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 10
その後、
sysctl -p
で反映。
これでローカルポートを1024-65000使える設定に。
More than 5 years have passed since last update.
/etc/sysctl.confの末尾に以下を追加。
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 10
その後、
sysctl -p
で反映。
これでローカルポートを1024-65000使える設定に。
Register as a new user and use Qiita more conveniently