Posts

Showing posts with the label Linux NAT

Valorant requires a restart or loads slowly when entering the game. What can I do? I have an idea.

Valorant is a free first -person tactical shooting game developed by Riot Games, which combines the exact system of arms shooting and heroism. Players will be transformed into agents and will compete for target points using team collaboration, tactical layout and skills cooperation 5V5 offensive and defense stroke. The game has a low economic system and high competitiveness. Before each game start, buy weapons and armor according to tactical needs and use a combination of heroic skills to create the benefits of the battlefield. Its solid ballistic mechanism and map design require players for accurate purposes and tactical decision -making. At the same time, the rich character pool and skill combination give the game a strategic depth. If you have the problems you need to restart or slowly load while playing a "Varorant", try the following systematic solution: Network environment optimization is the main solution. Because valante servers can be introduced abroad, physical dist...

NAT-PT - 原理

Image
操作 NAT-PT的工作原理是捕获,转换和发送从IPv6到IPv4网络的数据包(反之亦然)。输出数据包的目标 IPv4 地址由接收的 IPv6 数据包中目标的最后四个字节确定。请看下图。PC1 上的一个用户,一个内部纯 IPv6 主机打开一个 Internet 浏览器,然后转到 www.google.com。他的计算机首先对其 DNS 服务器执行查询。 NAT-PT 捕获数据包,并在 PC1 的 IPv6 地址与其池中的某个 IPv4 地址之间创建新的绑定,并转换数据包。NAT-PT 看到 DNS 查询并将 AAAA 请求转换为 A 请求。最后,它为新创建的 IPv4 数据包找到路由,并将其排队到相应的出站接口。 DNS 服务器接收查询并发送答复。 NAT-PT 捕获流量并查找映射的 IPv6 地址。它还会查看 DNS A 资源记录并将其转换为 AAAA 记录。它通过添加一个特殊的“NAT-PT前缀”(通过“naptd-confmaker”配置,默认值为2000:ffff::)到 IPv4 地址的开头。最后,它为新创建的 IPv6 数据包找到路由,并将其排队到相应的出站接口。 从这里,PC1 启动与 www.google.com 的连接。 NAT-PT捕获数据包并在PC1的IPv6地址与其池中的IPv4地址之一之间创建新的绑定,转换数据包,查找路由,然后...等。 Google的Web服务器回复初始SYN数据包。 NAT-PT 捕获流量并查找映射的 IPv6 地址。最后,它为新创建的 IPv6 数据包找到路由,并将其排队到相应的出站接口。 以上总结了纯 IPv6 和纯 IPv4 主机如何通信的基础知识。连接的其余部分以相同的方式发生。NAT-PT 维护三个“转换”池,一个用于 TCP,一个用于 UDP,一个用于 ICMP。默认情况下,TCP 转换在捕获 RST 或 FIN 数据包后 5 分钟后或 24 小时不活动后超时。UDP 转换在 1 小时后过期,ICMP 在 30 秒后过期。 先决条件 NAT-PT 要求 iptable 和 ip6tables 都能正常工作。这是由于NAT-PT在用户空间中运行的事实引起的。这有两个重要的副作用: 1. TCP 重置。 在数据包从 IPv6 转换并使用出站接口的 IPv4 地址作为转换的全局 IPv4 地址发送到 IPv4 端...

运行 NAPTD 的 Linux Box 的 IPv4 到 IPv6 静态 NAT-PT

Image
如果仅 IPv4 网络中的客户端想要访问仅 IPv6 网络中的服务器,则可以在 2 个网络之间设置一个 Linux 盒,作为网关。它运行 NAPTD 软件,该软件执行IPv4到IPv6 NATing。 我将设置3个虚拟机来模拟此设置。 网络拓扑为: 3 个 VM 运行 RHEL/CentOS 7.2 Linux。 IPv4 节点设置 通过编辑文件设置 ipv4 地址: eth1 ifcfg-eth1 [root@ipv4 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 NM_CONTROLLED=no TYPE=Ethernet IPADDR=172.34.0.2 PREFIX="24" BOOTPROTO=static ONBOOT=yes 开始: eth1 ifdown eth1 && ifup eth1 IPv6 节点设置 通过编辑文件设置 ipv6 地址: eth1 ifcfg-eth1 [root@ipv6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 NM_CONTROLLED=no TYPE=Ethernet BOOTPROTO=static ONBOOT=yes IPV6INIT=yes IPV6ADDR=2001:a:b:c::2/64 通过创建文件设置到 NAPTD 虚拟网络的路由: route6-eth1 [root@ipv6 ~]# cat /etc/sysconfig/network-scripts/route6-eth1 2000:ffff::/64 via 2001:a:b:c::1 开始: eth1 ifdown eth1 && ifup eth1 设置 NAT-PT 网关节点 配置 IPv4 和 IPv6 接口 设置 ipv6 地址: eth1 [root@natpt ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 NM_CONTROLLED=no TYPE=Ethernet BOOTPROTO=static ONBOOT=yes IPV6INIT=yes...