[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6372":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},6372,"n2n","ntop\u002Fn2n","ntop","Peer-to-peer VPN",null,"C",6953,1014,155,147,0,1,7,41,4,40.02,"GNU General Public License v3.0",false,"dev",true,[26,27],"peer-to-peer","vpn","2026-06-12 02:01:19","[![Build Status](https:\u002F\u002Ftravis-ci.org\u002Fntop\u002Fn2n.png?branch=dev)](https:\u002F\u002Ftravis-ci.org\u002Fntop\u002Fn2n)\n\n\n# n2n\n\nn2n is a light VPN software which makes it easy to create virtual networks bypassing intermediate firewalls.\n\nIn order to start using n2n, two elements are required:\n\n- A _supernode_: it allows edge nodes to announce and discover other nodes. It must have a port publicly accessible on internet.\n- _edge_ nodes: the nodes which will be a part of the virtual networks\n\nA virtual network shared between multiple edge nodes in n2n is called a _community_. A single supernode can relay multiple communities and a single computer can be part of multiple communities at the same time. An encryption key can be used by the edge nodes to encrypt the packets within their community.\n\nn2n tries to establish a direct peer-to-peer connection via udp between the edge nodes when possible. When this is not possible (usually due to special NAT devices), the supernode is also used to relay the packets.\n\n\n## Quick Setup\n\nSome Linux distributions already provide n2n as a package so a simple `sudo apt install n2n` will do the work. Alternatively, up-to-date packages for most distributions are available on [ntop repositories](http:\u002F\u002Fpackages.ntop.org\u002F).\n\nOn host1 run:\n\n```sh\n$ sudo edge -c mynetwork -k mysecretpass -a 192.168.100.1 -f -l supernode.ntop.org:7777\n```\n\nOn host2 run:\n\n```sh\n$ sudo edge -c mynetwork -k mysecretpass -a 192.168.100.2 -f -l supernode.ntop.org:7777\n```\n\nNow the two hosts can ping each other.\n\n**IMPORTANT** It is strongly advised to choose a custom community name (`-c`) and a secret encryption key (`-k`) in order to prevent other users from connecting to your computer. For the privacy of your data sent and to reduce the server load of `supernode.ntop.org`, it is also suggested to set up a custom supernode as explained below.\n\n\n## Setting up a Custom Supernode\n\nYou can create your own infrastructure by setting up a supernode on a public server (e.g. a VPS). You just need to open a single port (1234 in the example below) on your firewall (usually `iptables`).\n\n1. Install the n2n package\n2. Edit `\u002Fetc\u002Fn2n\u002Fsupernode.conf` and add the following:\n   ```\n   -p=1234\n   ```\n3. Start the supernode service with `sudo systemctl start supernode`\n4. Optionally enable supernode start on boot: `sudo systemctl enable supernode`\n\nNow the supernode service should be up and running on port 1234. On your edge nodes you can now specify `-l your_supernode_ip:1234` to use it. All the edge nodes must use the same supernode.\n\n\n## Manual Compilation\n\nOn Linux, compilation from source is straight forward:\n\n```sh\n.\u002Fautogen.sh\n.\u002Fconfigure\nmake\n\n# optionally install\nmake install\n```\n\nFor Windows, MacOS, optimizations and general building options, please check out [Building documentation](doc\u002FBuilding.md) for compilation and running.\n\n**IMPORTANT** It is generally recommended to use the [latest stable release](https:\u002F\u002Fgithub.com\u002Fntop\u002Fn2n\u002Freleases). Please note that the current _dev_ branch usually is not guaranteed to be backward compatible neither with the latest stable release nor with previous _dev_ states. On the other hand, if you dare to try bleeding edge features, you are encouraged to compile from _dev_ – just keep track of sometimes rapidly occuring changes. Feedback in the _Issues_ section is appreciated.\n\n\n## Security Considerations\n\nWhen payload encryption is enabled (provide a key using `-k`), the supernode will not be able to decrypt\nthe traffic exchanged between two edge nodes but it will know that edge A is talking with edge B.\n\nThe choice of encryption schemes that can be applied to payload has recently been enhanced. Please have\na look at [Crypto description](doc\u002FCrypto.md) for a quick comparison chart to help make a choice. n2n edge nodes use \nAES encryption by default. Other ciphers can be chosen using the `-A_` option.\n\nA benchmark of the encryption methods is available when compiled from source with `tools\u002Fn2n-benchmark`.\n\nThe header which contains some metadata like the virtual MAC address of the edge nodes, their IP address, their real \nhostname and the community name optionally can be encrypted applying `-H` on the edges.\n\n\n## Advanced Configuration\n\nMore information about communities, support for multiple supernodes, routing, traffic restrictions and on how to run an edge as \na service is available in the [more detailed documentation](doc\u002FAdvanced.md).\n\n\n## Contribution\n\nYou can contribute to n2n in various ways:\n\n- Update an [open issue](https:\u002F\u002Fgithub.com\u002Fntop\u002Fn2n\u002Fissues) or create a new one with detailed information\n- Propose new features\n- Improve the documentation\n- Provide pull requests with enhancements\n\nFor details about the internals of n2n check out the [Hacking guide](https:\u002F\u002Fgithub.com\u002Fntop\u002Fn2n\u002Fblob\u002Fdev\u002Fdoc\u002FHacking.md).\n\n\n## Further Readings and Related Projects\n\nAnswers to frequently asked questions can be found in our [FAQ document](https:\u002F\u002Fgithub.com\u002Fntop\u002Fn2n\u002Fblob\u002Fdev\u002Fdoc\u002FFaq.md).\n\nHere is a list of third-party projects connected to this repository:\n\n- Collection of pre-built binaries for Windows: [lucktu](https:\u002F\u002Fgithub.com\u002Flucktu\u002Fn2n)\n- n2n for Android: [hin2n](https:\u002F\u002Fgithub.com\u002Fswitch-iot\u002Fhin2n)\n- Docker images: [Docker Hub](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fsupermock\u002Fsupernode\u002F)\n- Go bindings, management daemons and CLIs for n2n edges and supernodes, Docker, Kubernetes & Helm Charts: [pojntfx\u002Fgon2n](https:\u002F\u002Fpojntfx.github.io\u002Fgon2n\u002F)\n- Windows GUI (along with a custom version of n2n) but also working with regular n2n: [HappyNet](https:\u002F\u002Fgithub.com\u002Fhappynclient\u002Fhappynwindows)\n\n---\n\n(C) 2007-22 - ntop.org and contributors\n","n2n是一个轻量级的点对点VPN软件，用于创建能够绕过中间防火墙的虚拟网络。其核心功能包括通过UDP协议在边缘节点间建立直接连接，并使用超级节点来帮助发现和中继数据包，当直接连接不可行时尤为关键。此外，n2n支持为每个社区设置加密密钥以保障通信安全。适用于需要构建私有、安全且灵活的虚拟网络环境的企业或个人用户，特别适合于那些面临严格网络访问限制的情况。项目采用C语言编写，开源且遵循GPLv3许可协议。",2,"2026-06-11 03:06:45","top_language"]