我正在尝试为 UDP openvpn 流量打开端口 1194。
'ufw status' 显示它应该是打开的:
$ sudo ufw status
WARN: Duplicate profile 'Apache', using last found
WARN: Duplicate profile 'Apache Secure', using last found
WARN: Duplicate profile 'Apache Full', using last found
Status: active
To Action From
-- ------ ----
...
1194/udp ALLOW Anywhere
1194/udp (v6) ALLOW Anywhere (v6)
Run Code Online (Sandbox Code Playgroud)
根据iptables,它是开放的:
$ sudo iptables -L | less
...
Chain ufw-user-input (1 references)
...
ACCEPT udp -- anywhere anywhere udp dpt:openvpn
Run Code Online (Sandbox Code Playgroud)
OpenVPN 正在侦听该端口(如果我正确解释了这一点):
$ sudo netstat -vaun
Active Internet …Run Code Online (Sandbox Code Playgroud)