root@server:~# ufw allow 83973/tcp
Rules updated
Rules updated (v6)
root@server:~# sudo ufw status verbose
Status: inactive
root@server:~# sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
root@server:~# sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
83973 ALLOW IN Anywhere
83973/tcp ALLOW IN Anywhere
83973 (v6) ALLOW IN Anywhere (v6)
83973/tcp (v6) ALLOW IN Anywhere (v6)
root@server:~#
我正在嘗試添加偵聽連接埠 83973 但它不起作用。請指教
此致
答案1
我可能遺漏了一些東西,但是高於 65535 的 TCP 連接埠是不可能的,因為它們會溢出協定中專用於該連接埠的 16 位元。