AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-511946

Fernando D'Andrea's questions

Martin Hope
Fernando D'Andrea
Asked: 2025-03-24 04:02:57 +0800 CST

NPM 位置在带有 Tailscale VPN 的 TrueNAS SCALE 上不起作用

  • 6

我已使用我的域 iguana-centauri 使用 TrueNAS Scale 24.10.2 和 Tailscale 配置了我的服务器“Ada”。

我可以通过完美访问它ada.iguana-centauri.ts.net。

我将 TrueNAS Web 管理员的 HTTP 端口从 80 移到了 8090(并将 NPM 的 HTTP 端口从 30021 移到了 80),现在我可以轻松地通过 访问 TrueNAS Web 管理员ada.iguana-centauri.ts.net:8090,通过 访问 NPM 管理员ada.iguana-centauri.ts.net:30020,并通过 访问 NPM“祝贺”页面ada.iguana-centauri.ts.net。完美。

然后,我在 NPM 中配置了一个代理主机,其域名为ada.iguana-centauri.ts.net,HTTP 模式为 ,转发主机名/IP 指向192.168.68.68(TrueNAS 内网 IP),端口为 8090,并启用了 WebSockets 支持和阻止常见漏洞。这样就可以完美地访问 TrueNAS webadmin 了。(Nginx 仍然可以通过 :30020 访问。)

然后,一切都乱套了。

当我尝试配置自定义位置以通过访问 NPM 本身时ada.iguana-centauri.ts.net/nginx,一切都停止工作:

  • ada.iguana-centauri.ts.net开始返回 NPM“祝贺”页面,就像直接通过 IP 访问一样。
  • ada.iguana-centauri.ts.net/nginx返回一个空白页,该页面似乎包含一些 NPM 管理器界面的 MHTML,但没有任何内容可以正确加载,并且浏览器抱怨text/html外部资源的 MIME 类型()不匹配(X-Content-Type-Options:nosniff),显然错误地重写了它们的 URL。

我尝试了各种方法,例如下面的自定义规则脚本,但一切都变得更糟,导致 404 或 502 错误:

rewrite ^/nginx(/.*)?$ $1 break;
proxy_http_version 1.1;
proxy_set_header Host localhost;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Prefix /nginx;

/nginx最终,我的目标是通过子路径( 、等)访问服务/nextcloud,但现在我陷入了困境。

帮助!

npm
  • 1 个回答
  • 71 Views
Martin Hope
Fernando D'Andrea
Asked: 2022-07-05 21:21:01 +0800 CST

WSL 突然没有网络连接

  • 7

无论我尝试做什么需要连接的操作都说网络无法访问,即使 Windows 主机正常访问互联网和本地网络。我正在使用从 Arch 为 WSL2 发行版定制的 Manjaro 发行版,并且在两年内直到现在都没有造成任何问题。

起初,我认为这可能是由错误的更新引起的,所以我用最后一个工作备份覆盖了 ext4.vhdx 文件,但仍然没有连接。这个问题实际上与发行版无关,也出现在 Ubuntu 中。

电流/etc/resolv.conf如下:

# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.25.128.1

我尝试将名称服务器设置为 1.1.1.1 并使用wsl.conf它不会被覆盖,但这不起作用。

我尝试将名称服务器和默认网关 192.168.15.1 添加到 Windows 中的 vEthernet (WSL) 适配器,但效果不佳。我的ipconfig如下:

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Ethernet 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter vEthernet (WSL):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::5058:ecac:1c0c:dab1%71
   IPv4 Address. . . . . . . . . . . : 172.25.128.1
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::24e4:f9ba:4ded:19ec%4
   Autoconfiguration IPv4 Address. . : 169.254.25.236
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Unknown adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2804:7f4:c2a6:4111:255d:530e:69e5:9965
   Temporary IPv6 Address. . . . . . : 2804:7f4:c2a6:4111:417c:79cd:521d:ef9f
   Link-local IPv6 Address . . . . . : fe80::255d:530e:69e5:9965%9
   IPv4 Address. . . . . . . . . . . : 192.168.15.12
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::f654:20ff:fe67:bd50%9
                                       192.168.15.1

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Windows 重新启动,wsl --shutdown否则无法正常工作。类似问题的其他解决方案似乎不适用或不起作用。不涉及VPN。我不知道如何开始解决此问题。有什么线索吗?

networking windows-subsystem-for-linux
  • 1 个回答
  • 312 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve