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
    • 最新
    • 标签
主页 / server / 问题

问题[ipv6](server)

Martin Hope
Sven Jung geb Stiefvater
Asked: 2024-09-28 06:15:07 +0800 CST

NPM 的子域名无法通过 Dynv6-Main-Zone 工作

  • 5

今天我买了一个新路由器。不幸的是,从现在起我只能使用 DS-lite。额外的 DS 对于私人使用来说确实要多花很多钱。

我有 3 个可公开访问的 Web 服务器:Jellyfin、Nextcloud 和 Home Assistant。它们均通过 NPM 连接。

由于 DuckDNS 不适用于 IPv6,我尝试切换到 DynV6。我创建了一个区域,并且能够更新 IPv6 以及正确的 AAAA 条目。

我可以使用区域名称“xxx.dynv6.net”访问 NPM。如果我打开该站点,我会根据“默认站点”(当 Nginx 遇到未知主机时显示的内容)重新连接。这是意料之中的,因为我只使用子域。

NPM 中为该区域配置的子域名不起作用:jf.xxx.dynv6.net;nc.xxx.dynv6.net 和 ha.xxx.dynv6.net

如果我打开 [::(Ipv6 from Jellyfin)]:8096 那么它就可以工作。

在它起作用之前,我不会打扰 SSL。

有人能帮帮我吗?我已经把 Copilot 烦死了 :D

ipv6
  • 1 个回答
  • 78 Views
Martin Hope
nexus.chebykin
Asked: 2024-08-24 00:10:03 +0800 CST

难以理解 6in4 隧道参数

  • 5

当我创建一个 6in4 隧道(例如在HE上)时,我会得到一堆地址和掩码:

IPv6 Tunnel Endpoints:
Server IPv4 Address: 216.66.80.162
Server IPv6 Address: 2001:470:70:625::1/64
Client IPv4 Address: [redacted]
Client IPv6 Address: 2001:470:70:625::2/64
Routed IPv6 Prefixes:
Routed /64: 2001:470:71:625::/64
Routed /48: 2001:470:6297::/48

在我看来,他们为我分配了一个 /64 子网,标记为路由 /64。所有应该去往那里的流量都会到达他们的服务器,并通过 IPv4 隧道传输到我(客户端 IPv4 地址)。要发送 IPv6 数据包,我只需要知道服务器 IPv4 地址,然后我只需封装并将它们发送到那里,声称我的 IPv6 地址是客户端 IPv6 地址。我不明白的是:

  1. 为什么客户端 IPv6 地址不在路由 /64下?如果我的 IP 与隧道不关联,响应如何路由回我?
  2. 按照路由器指南设置好一切后,网络上的设备开始获取路由 /48下的地址。那么客户端 IPv6 地址的用途是什么?
  3. 该指南并未要求输入服务器 IPv6 地址,其用途是什么?
ipv6
  • 1 个回答
  • 41 Views
Martin Hope
DustWolf
Asked: 2024-06-04 03:30:45 +0800 CST

NTP 服务器不响应 IPv6

  • 6

我一直在尝试为 IPv4 和 IPv6 设置 NTP 服务器。 IPv4 工作正常,IPv6 上配置的其他 TCP 和 UDP 服务也是如此,但我无法让我的 NTP 服务器响应 IPv6 查询,我不明白为什么。

NTP服务器是ntpsec 1.2.2(随Ubuntu 24.04一起提供),设置:

driftfile /var/lib/ntpsec/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list
tos maxclock 11
tos minclock 4 minsane 3
interface listen (my LAN ipv4 address)
interface listen 2a01:0261:0e4a:cb::2
pool ntp.t-2.net
pool 3.ubuntu.pool.ntp.org
restrict -4 default kod nomodify nopeer noquery limited
restrict -6 default kod nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1

Netstat 显示它正在侦听 IPv6 通配符:

# netstat -tunpl | grep ntp
udp        0      0 (my lan ip):123         0.0.0.0:*                           54219/ntpd          
udp        0      0 127.0.0.1:123           0.0.0.0:*                           54219/ntpd          
udp        0      0 0.0.0.0:123             0.0.0.0:*                           54219/ntpd          
udp6       0      0 ::1:123                 :::*                                54219/ntpd          
udp6       0      0 :::123                  :::*                                54219/ntpd          

ntpdate(从路由器后面)显示数据传输:

# ntpdate -d -6 2a01:261:e4a:cb00::2
 3 Jun 21:24:32 ntpdate[11496]: ntpdate [email protected] (1)
Looking for host 2a01:261:e4a:cb00::2 and service ntp
2a01:261:e4a:cb00::2 reversed to m2.lan
host found : m2.lan
transmit(2a01:261:e4a:cb00::2)
transmit(2a01:261:e4a:cb00::2)
transmit(2a01:261:e4a:cb00::2)
transmit(2a01:261:e4a:cb00::2)
2a01:261:e4a:cb00::2: Server dropped: no data

tcpdump 显示收到数据,但没有响应:

# tcpdump -i enp42s0 udp port 123 and ip6
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on enp42s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
19:24:32.801627 IP6 2a01:261:e4a:cb00:lanipv6.51439 > m2.lan.ntp: NTPv4, Client, length 48
19:24:34.801528 IP6 2a01:261:e4a:cb00:lanipv6.51439 > m2.lan.ntp: NTPv4, Client, length 48
19:24:36.801207 IP6 2a01:261:e4a:cb00:lanipv6.51439 > m2.lan.ntp: NTPv4, Client, length 48
19:24:38.801200 IP6 2a01:261:e4a:cb00:lanipv6.51439 > m2.lan.ntp: NTPv4, Client, length 48

IPv6 网络是使用 DHCP 配置的,正如前面提到的,DNS 等其他服务可以在 TCP 和 UDP 上正常工作,因此我假设路由设置正确。

问题在哪里?

ipv6
  • 1 个回答
  • 26 Views
Martin Hope
Xsmael
Asked: 2023-11-06 21:22:47 +0800 CST

如何在 Ubuntu 20.04 上启用 IPv6

  • 5

我尝试在 ubuntu 20.04 上启用 IPv6 支持,但没有成功

我在网上找到的大多数资源都涉及将以下行添加到 /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

我做了,但没有效果

或编辑 /etc/network/interfaces 但这个文件在我的系统上不存在,而我碰巧有 /etc/netplan/50-cloud-init.yaml 我知道 netplan 和 cloud-init 的东西。但是当我打开 /etc/netplan/50-cloud-init.yaml 时,它说该文件已生成,任何修改都将被覆盖。

现在我该如何启用它 IPv6 ?我不需要 IPv6 地址,但我正在尝试安装需要 IPv6 支持的 BigBlueButton 2.7

ipv6
  • 1 个回答
  • 37 Views
Martin Hope
mirabilos
Asked: 2023-09-21 23:24:40 +0800 CST

IP 以全零结尾:有效(对于 /128)或可能与任播混淆?

  • 5

Host Europe 分配了一个我刚刚从他们那里租用的虚拟机,其 IP 地址以全零 ( 2xxx:xxxx:xxxx:xxxx::/128) 结尾。

我声称这可能是互操作问题,因为最后 64 位全零的地址通常是子网路由器的任播地址,我担心其他节点可能会特殊对待它。

他们的支持说:“从语法上讲,它只是一个子网任播地址,但您可以毫无问题地使用它,因为我们使用 /128 子网大小。” (我的翻译)

我只是半信半疑。有没有什么东西可以让节点专门处理这种类型的地址,或者我真的可以像常规地址一样使用它吗?

ipv6
  • 2 个回答
  • 99 Views
Martin Hope
sam
Asked: 2023-05-11 00:20:15 +0800 CST

IPv6 - 网络 ID 的最后 16 位是否始终保留用于子网划分?

  • 5

我正在阅读 IPv6 地址结构,它有两个部分,一个用于网络(网络部分/网络 ID),另一个用于主机(接口 ID/节点部分),无论大小差异如何,IPv4 都有。

大多数参考资料都说地址分为网络部分的 64 位(/64 前缀)和主机的 64 位,我们可以使用网络部分的最后 16 位进行子网划分。

那么这是 IPv6 中的一条规则,即地址总是一分为二吗?如果我们想对地址进行子网划分,ISP 会给出一个带有 /48 前缀位的地址,只留下网络部分的最后 16 位用于子网划分?或者只是推荐的路径?

问候

ipv6
  • 1 个回答
  • 31 Views
Martin Hope
transient_loop
Asked: 2023-04-11 08:46:34 +0800 CST

为什么我只有一个链路本地 ipv6 地址?

  • 5

我认为 ipv6 解决了地址问题。我当时(显然是错误的?)假设我会在家里的机器上分配一个 ipv6 地址,如果(我的 ISP 支持 ipv6)我就可以使用。

为什么ip -6 address在我的盒子上只显示链接本地地址?

2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::<address>/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

我的路由器(通过它的 dhcp)可以给我分配一个吗?或者这是我必须向 ISP 请求的东西?

基本上我想用那个 AAAA 记录和 ipv6 地址注册一个 DNS 地址。

ipv6
  • 1 个回答
  • 33 Views
Martin Hope
Tom John
Asked: 2023-02-09 12:22:39 +0800 CST

/64 范围内有多少公共可用的 IPv6 ip?

  • 3

所以我知道 /64 IPv6 范围有 18,446,744,073,709,551,616 个地址,但我被告知这些 IP 中的大多数只能用于 LAN 上的本地 IP。

/64 中有多少个可用的公共 ipv6 ip 地址?谢谢。

ipv6
  • 2 个回答
  • 53 Views
Martin Hope
phonon112358
Asked: 2022-04-04 16:53:52 +0800 CST

IPv6 无法在带有 nftables/nginx 的 Debian 11 上运行

  • -1

我正在使用 nftables 0.9.8 的 Debian 11 系统上运行网络服务器(nginx 1.21.6)。我的 nftables 配置是:

table inet filter {
chain input {
  type filter hook input priority filter; policy drop;
            ip saddr @spamhaus4 counter packets 0 bytes 0 drop
            ip6 saddr @spamhaus6 counter packets 0 bytes 0 drop
            meta l4proto tcp meta nfproto ipv4 ip saddr @abused counter packets 0 bytes 0 drop
            ip daddr 46.38.148.0-46.38.151.255 drop
            iif "lo" log group 2 accept
            iif != "lo" ip daddr 127.0.0.0/8 counter packets 0 bytes 0 drop comment "drop connections to loopback not coming from loopback"
            iif != "lo" ip6 daddr ::1 counter packets 0 bytes 0 drop comment "drop connections to loopback not coming from loopback"
            ct state established,related log group 2 accept
            ct state invalid counter packets 47 bytes 2572 drop
            tcp dport { 25, 80, 143, 443, 587, 2772, 9980, 45907 } log group 2 accept
            ip protocol icmp icmp type { echo-reply, destination-unreachable, echo-request, router-advertisement, router-solicitation, time-exceeded, parameter-problem } log group 2 accept
            ip6 nexthdr ipv6-icmp icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem, echo-request, echo-reply, nd-router-solicit, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert, ind-neighbor-solicit, ind-neighbor-advert } log group 2 accept
            ip6 nexthdr ipv6-icmp log group 2 accept
            counter packets 2686 bytes 421604 drop
    }

    chain IPSinput {
            type filter hook input priority filter + 10; policy drop;
            counter packets 88448 bytes 15799025 queue num 0-3 bypass,fanout
    }

    chain forward {
            type filter hook forward priority filter; policy drop;
    }

    chain output {
            type filter hook output priority filter; policy accept;
    }

    chain IPSoutput {
            type filter hook output priority filter + 10; policy drop;
            counter packets 76196 bytes 201278628 queue num 0-3 bypass,fanout
    }
   }

nftables 防火墙工作正常。

但是,我的 nginx 服务器无法通过 IPv6 访问。我使用了不同的 IPv6 检查工具(例如https://ipv6-test.com/validate.php)并且Qualys ssltest无法通过 IPv6 访问服务器,但是 IPv4 工作正常。我在每个 nginx 服务器中都包含了listen [::]:80;(resp.指令。并给出了listen [::]:443;netstat -anlp |grep nginx

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      48846/nginx: master
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      48846/nginx: master
tcp        0      0 192.168.42.98:443       93.104.163.178:39001    VERBUNDEN   48847/nginx: worker
tcp        0      0 192.168.42.98:443       93.104.163.178:39368    VERBUNDEN   48847/nginx: worker
tcp        0      0 192.168.42.98:443       93.104.163.178:43086    VERBUNDEN   48847/nginx: worker
tcp6       0      0 :::80                   :::*                    LISTEN      48846/nginx: master
tcp6       0      0 :::443                  :::*                    LISTEN      48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160451   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160453   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160450   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160448   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160452   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160446   48846/nginx: master
unix  3      [ ]         STREAM     VERBUNDEN     160449   48846/nginx: master

在我的路由器上,我也激活了 IPv6。

有谁知道问题出在哪里?

nginx ipv6 nftables
  • 1 个回答
  • 288 Views
Martin Hope
Muhammad Ikhwan Perwira
Asked: 2022-02-05 07:04:46 +0800 CST

将一个 VPS 中的 UDP ipv6 端口转发到另一个 VPS 中的 UDP ipv4 端口

  • 0

我有 VPS,比方说没有 IPv4 但只有 IPv6 的 VPS X。

和

我有 VPS,比如说没有 IPv6 但只有 IPv4 的 VPS Y。

由于今天仍然普遍使用 IPv4,并且某些设备无法访问 IPv6。

我想使用 VPS Y 网卡作为 VPS X 的 IPv4,因为 VPS X 没有 IPv4。

我希望 VPS Y 中的 UDP 端口正在监听来自互联网的传入连接,然后将 UDP 数据报转发到 VPS X 中的 UDP 端口。

我可以使用 SSH 转发在 VPS X 中运行此命令来实现它。

SSH -NR 19132:localhost:19133 server

我可以将 SSH 从 VPS X 连接到 VPS Y。但是 VPS Y 无法连接到 VPS X。

不幸的是,SSH 转发仅适用于 TCP 端口。虽然我想要 UDP 端口转发,因为我的世界基岩服务器正在使用 UDP。

udp ssh port-forwarding ssh-tunnel ipv6
  • 1 个回答
  • 185 Views

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve