zerotier-cli peers 显示直连,ping 能通且很低。但 ssh 始终不通显示 connection refused 可能是什么原因?
已确认远程机器 22 端口打开,内网测试(不在同一个路由器下)可正常连接 ssh 。ssh 基本是默认配置,访问 ip 未做任何限制。
远程机器打开的其他任何端口的服务(非 80 ,443 )也不能连通。
1
shyrock 253 天前
盲猜是防火墙问题,从虚拟 IP 过来的 22 流量被拦截了。。。
|
3
FACEB00K 253 天前
已经换成 tailscale 了
|
4
AirCrusher 253 天前
@rectafl1 不如用 iptables 把一个其他端口 forward 到 22
|
5
rectafl1 OP @AirCrusher 不只 22 ,任何端口都无法连接。。。
|
6
ppqqows 253 天前
IPtables:
iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -F iptables -t mangle -F iptables -F iptables -X nftables: nft flush ruleset 然后再试试(除非你理解以上命令并能够还原防火墙当前状态,否则不要轻易使用) |