Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-2024-08-06· OpenAIAi2 WildChat-4.8M (AI2)

English 中文 Website: openp2p.cn What is OpenP2P It is an open source, free, and…

  1. User

    User: English|中文 Website: openp2p.cn

    What is OpenP2P It is an open source, free, and lightweight P2P sharing network. Your devices will form a private P2P network, in which devices can directly access other members, or indirectly access through other members forwarding data. If the private network cannot complete the communication, it will go to the public P2P network to find a shared node to assist in the communication. Compared with the BT network used to share files, the OpenP2P network is used to share bandwidth. Our goal is to make full use of bandwidth, use shared nodes to relay data, and build a common infrastructure for remote connections.

    Why OpenP2P

    1. Free Totaly free, fullfills most of users(especially free-rider). Unlike other similar products, OpenP2p doesn't need a server with public IP, and doesn't need to pay for services.By understanding its principle, you can understand why it can be done for free.

    2. Share Your devices will form a private P2P network, share bandwidth between them, and provide network data forwarding services. When there is no node that can provide forwarding services in your private P2P network, you will try to find forwarding nodes in the public P2P network. 10mbps is its default setting of share speed limit. Only when you have shared their nodes, you are allowed to use others' shared nodes. This is very fair, and it is also the original intention of this project. We recommend that you join a shared network in a place with sufficient bandwidth (such as an office or home with 100M optical fiber). If you are not willing to contribute any node to the OpenP2P share network, please refer to the usage for your own setting.

    3. Safe The code is open source, the P2P tunnel uses TLS1.3+AES double encryption, and the shared node temporarily authorizes the use of the TOTP one-time password

    details

    1. Lightweight 2MB+ filesize, 2MB+ memory. It could only runs at application layer, or uses wintun driver for SDWAN.

    2. Cross-platform Benefit from lightweight, it easily supports most of major OS, like Windows, Linux, MacOS, also most of CPU architecture, like 386、amd64、arm、arm64、mipsle、mipsle64、mips、mips64、s390x、ppc64le.

    3. Efficient P2P direct connection lets your devices make good use of bandwidth. Your device can be connected in any network environments, even supports NAT1-4 (Cone or Symmetric),UDP or TCP punching,UPNP,IPv6. Relying on the excellent congestion algorithm of the Quic protocol, high bandwidth and low latency can be obtained in a bad network environment.

    4. Integration Your applicaiton can call OpenP2P with a few code to make any internal networks communicate with each other.

    Get Started Just 4 simple steps to use. Here's an example of remote work: connecting to an office Windows computer at home. (Another quick started vedio https://www.bilibili.com/video/BV1Et4y1P7bF/)

    1.Register Go to https://console.openp2p.cn register a new user

    image

    2.Install Download on local and remote computers and double-click to run, one-click installation

    image

    By default, Windows will block programs that have not been signed by the Microsoft's certificate, and you can select "Run anyway".

    image

    image

    3.New P2PApp image

    image

    image

    4.Use P2PApp You can see the P2P application you just created on the "MyHomePC" device, just connect to the "local listening port" shown in the figure below.

    image

    On MyHomePC, press Win+R and enter MSTSC to open the remote desktop, input 127.0.0.1:23389 /admin

    image

    image

    Usage Here describes how to run manually

    Scenarios Especially suitable for large traffic intranet access.

    Remote work: Windows MSTSC, VNC and other remote desktops, SSH, various ERP systems in the intranet Remote access ERP systems in the intranet Remote access NAS: Manage a large number of videos and pictures Remote access camera Remote flashing phone Remotely data backup Overview Design Prototype image

    Client architecture image

    P2PApp P2PAPP is the most import concept in this project, one P2PApp is able to map the remote service(mstsc/ssh) to the local listening. The main job of re-development or restful API we provide is to manage P2PApp.

    image

    Safety The nodes which have joined the OpenP2P share network can vist each other by authentications. Shared nodes will only relay data, and others cannot access any resources in the intranet.

    1. TLS1.3+AES The communication data between the two nodes uses the industry's most secure TLS1.3 channel. The communication content will also use AES encryption, double security, the key is exchanged through the server. Effectively prevent man-in-the-middle attacks.

    2. Will the shared node capture my data? That's right, the relay node is naturally an man-in-middle, so AES encryption is added to ensure the security of the communication content. The relay node cannot obtain the plaintext.

    3. How does the shared relay node verify the authority? The server side has a scheduling model, which calculate bandwith, ping value,stability and ser

    这是什么项目,如果两台手机都装了,第三三台可以访问被控制端吗 Assistant: OpenP2P 是一个开源、免费的轻量级 P2P 共享网络,主要用于共享带宽。设备之间构成一个私有 P2P 网络,设备可以直接或通过其他成员转发数据来进行通信。如果私有网络无法完成通信,它将转向公共 P2P 网络寻找共享节点来协助通信。

    至于你提到的场景,如果两台手机都安装了 OpenP2P 且配置好,一个第三设备(如另一台手机或电脑)可以通过这个网络访问和控制这些设备,前提是这些设备在配置中允许这样的访问。这种功能通常依赖于在设备上配置的 P2PApp,允许将远程服务映射到本地端口,从而实现远程访问。需要注意的是,所有的通信都是通过加密来保证安全性的。 User: 能说的更明白一些吗?为啥要共享带宽 Assistant: OpenP2P 的设计目的是为了优化网络资源的使用,尤其是带宽。通过共享带宽,OpenP2P 提供了一种新的网络连接方式,使设备可以在没有公共 IP 地址或专用服务器的情况下进行通信。共享带宽有几个核心原因:

    1. 资源高效利用:在传统的网络设置中,个人用户的带宽经常处于闲置状态。通过共享,这些闲置的带宽可以被有效利用,帮助其他设备进行数据转发和通信。

    2. 成本节约:使用共享带宽意味着不必依赖昂贵的服务器和公共 IP 资源,这降低了使用成本。OpenP2P 旨在免费使用,这对于那些不想额外支付网络服务费用的用户是非常有吸引力的。

    3. 提高网络连接质量:有时候,私有网络无法直接建立连接(例如防火墙阻隔或网络配置复杂),通过公共 P2P 网络的共享节点,可以提升通信的成功率和效率,实现更稳定的远程连接。

    4. 去中心化的概念:P2P网络的本质是去中心化的,减少对单一点的依赖,提高整个网络的弹性和鲁棒性。每个节点既是客户端也是服务器,能够在需要时帮助转发其他节点的数据。

    通过以上这些方式,OpenP2P 不仅提供了一种高效的网络资源利用方案,还支持广泛的网络配置和环境,使用户可以在各种条件下保持良好的连接体验。 User: 意思原理就是利用别人共享的带宽吗 Assistant: 是的,OpenP2P 的基本原理之一就是利用其他用户共享的带宽来改善网络连接。每个设备在加入 OpenP2P 网络后,可以作为一个节点参与共享,提供带宽进行数据转发。当一个设备需要与另一个设备通信但无法通过直接连接实现时,它可以通过共享节点进行中继,从而完成通信。

    这种共享模式有几个优势:

    1. 增强连接能力:通过公共共享节点,即使在防火墙或复杂网络环境下,也可以提高通信成功率。

    2. 降低连接成本:无需购买或租用额外的服务器资源,依靠网络中其他节点的共享能力维持通信。

    3. 公平共享机制:用户只有在共享自己带宽的情况下,才能利用他人的带宽,这种互惠的方式保证了网络的公平性。

    这种模式的目的是在网络资源常常被浪费的前提下,实现资源的更优化分配,同时也增加连接的灵活性和稳健性。 User: 这技术比较牛 Assistant: 确实,OpenP2P 使用的技术具有很大的创新性和实用价值。它结合了开源、去中心化、加密通信等多种技术优势,为用户提供了一种高效、安全且经济的网络连接解决方案。通过共享闲置带宽资源,它能够显著提升网络连接的鲁棒性和覆盖范围,特别是在资源有限或访问受限的网络环境中格外有效。

    此外,其轻量级和跨平台设计使得它可以在多种设备和操作系统上运行,增加了其可用性和灵活性。这种技术不仅对于个人用户很有吸引力,对于需要稳定远程连接的小型企业或团队来说,也提供了一个低成本的选择。 User: 比如A是控制端 B是被控端 C是别人的手机

    A和B都安装了p2p他们可以互相外网访问,c如果想访问B被控端,可以吗 Assistant: 在您描述的场景中,A 作为控制端,B 作为被控端,如果 A 和 B 都安装并配置了 OpenP2P,他们可以在不同的网络下通过 OpenP2P 实现相互访问。至于 C(另一位用户的手机)是否可以访问 B,这取决于具体的配置和设置。

    1. 访问权限和配置:首先,B(被控端)需要明确设定允许哪些设备可以访问。如果 C 被配置为有权访问 B 的设备,并且 OpenP2P 网络允许这种访问(通常通过配置 P2PApp 来实现),那么 C 可以访问 B。

    2. 开放共享:如果 B 的配置中允许其他共享节点进行中继或直接访问,并且 C 拥有必要的认证信息(如用户名、密码或加密密钥),C 也有可能能够访问 B。

    3. 安全措施:为了确保安全,OpenP2P 的通信是加密的,并且通常需要认证。因此,C 需要具备适当的权限和认证才能成功连接到 B。

    简而言之,只要 B 允许 C 的访问并且相应的网络和安全设置已正确配置,C 是有可能访问 B 这个被控端的。 User: 那c用不用安装p2p Assistant: 是的,C 需要安装并配置 OpenP2P 才能够加入同一 P2P 网络并访问 B(被控端)。安装 OpenP2P 是必要的,因为这会使 C 成为网络中的节点,从而参与带宽共享和数据转发。

    通过安装 OpenP2P,C 可以在应用层与其他设备(比如 A 和 B)进行加密和认证的 P2P 通信,确保数据的安全传输。即使 C 只是作为一个访问者,它仍然需要 OpenP2P 客户端以符合网络的连接和安全要求。 User: 安全性怎么样 Assistant: OpenP2P 在安全性方面采取了多项措施,以确保数据传输的安全和隐私:

    1. TLS1.3 通信加密:OpenP2P 使用 TLS1.3 来加密节点之间的通信。TLS1.3 是当前行业中非常安全的传输层协议,能够有效防止中间人攻击,保护数据在传输过程中的完整性和机密性。

    2. AES 数据加密:除了使用 TLS1.3 加密通信链路外,OpenP2P 还使用 AES(高级加密标准)对通信内容本身进行加密。这提供了双重的安全保障,确保即使数据被截获,内容也是加密的且不可读。

    3. 一次性密码认证(TOTP):在共享节点的授权使用方面,OpenP2P 支持 TOTP(基于时间的一次性密码)机制。这有助于确保只有经过授权的用户才能通过共享节点进行访问。

    4. 去中心化和节点共享:通过去中心化的网络结构,OpenP2P 减少了对单一故障点的依赖,并且节点间的连接由共享协议管理,进一步提高了安全性和稳定性。

    虽然这些安全措施为 OpenP2P 提供了强大的保护,但用户仍需确保正确配置其设备,使用强密码和定期审查共享和访问权限以尽可能地增强安全性。 User: 去中心化是什么意思 Assistant: 去中心化是指一种系统架构或网络模型,其中没有单一的中央权威或控制节点,相反,权力和功能是分布的,没有一个特定的中心节点来管理所有其他节点的活动。这种模式通常具有以下几个特点:

    1. 自主性:在去中心化网络中,每个节点(设备或用户)都可以自主地操作,而不依赖于中央服务器或控制中心来执行任务。这意味着即使某个节点失效,整个网络仍能够继续运行。

    2. 容错性:由于不存在单点故障,去中心化系统通常更具弹性。即使某些节点不能正常工作,其他节点仍然能够相互通信和维持网络功能。

    3. 分布式信任:去中心化可以降低对单一实体的信任需求,因为网络中的所有参与者都可以共同维护网络的完整性和安全性。

    4. 透明性:在许多去中心化系统中,信息是公开透明的,所有参与者都可以获得相同的信息,这有助于防止信息的不对称和权力的集中。

    例如,在区块链技术中,去中心化体现在没有中央银行或单一机构控制信息和交易,而是由网络中的每个节点共同验证和记录交易。OpenP2P 以类似的方式,允许各节点共享带宽并相互通信,而无需依赖中心服务器,大大提高了网络的可扩展性和鲁棒性。 User: 它采用区块链? Assistant: OpenP2P 并不直接使用区块链技术。尽管去中心化和分布式的概念常常让人联想到区块链,但它们并不是同义词。OpenP2P 主要侧重于创建一个去中心化的 P2P 网络,使设备能够通过共享的节点进行连接和通信,而不依赖于中心服务器。

    区块链则是一种具体的技术实现,是一个分布式账本系统,具有去中心化、不可篡改和透明的特点,常用于加密货币和其他需要安全记录的应用。虽然两者都有去中心化的特性,但它们的用途和实现方式有所不同。

    OpenP2P 通过 P2P 网络协议和加密技术实现设备间的去中心化连接,而不涉及到区块链中的分布式账本和共识机制。 User: 意思安装p2p就共享了节点是吧 Assistant:

  2. Assistant

    是的,一旦安装并配置了 OpenP2P 客户端,您的设备就成为了网络中的一个节点。作为一个节点,您的设备可以参与带宽共享,提供和接受数据的转发服务。这意味着:

    1. 共享带宽:您的设备可以贡献一部分带宽给网络中其他需要进行数据通信的设备。这有助于提升整个网络的连接能力和效率。

    2. 数据中继:当其他设备需要通过中继来实现通信时,您的设备可能会被用作中继节点来转发数据。

    3. 访问权限:根据配置,您可能需要设置哪些设备可以通过 P2P 网络访问您的设备,以确保安全性和隐私。

    需要注意的是,OpenP2P 的共享机制是基于互惠原则的,这意味着只有参与共享的设备才能使用其他节点的共享资源。这种机制有助于保持公平,同时确保网络资源的有效利用。