Easy office-N2N facilita la configuración de una red de área local

N2N configura una red de área local para la depuración remota.

Paquete de instalación de plataformas N2N Windows y Linux

1. configuración del servidor

Estoy usando el servidor Windows de Alibaba Cloud, así que descargué la versión para Windows del supernodo N2N.
Nota: 1. Dado que N2N usa el protocolo UDP, el servidor debe abrir la entrada y salida del protocolo UDP
2. El número de puerto del supernodo configurado debe configurarse para permitir las reglas de entrada y salida del servidor.
El archivo de configuración del servidor supernode.conf es el siguiente


#        The configuration file is similar to the command line, with one option per line. An equal
#        sign '=' should be used between key and value. Example: -p=7777
#        This file contains a basic configuration example, please refer to the help (-h) for the full
#        list of available options.
#
#       -p
#        Sets the UDP listening port. 
#
-p=7777
#
#        -c
#        Optionally specifies the allowed communities as listed in community.list file.
#
# -c=community.list

3. Ejecute supernode.exe para iniciar el servicio.

2. Nodo de borde del cliente de Windos

Los nodos de borde incluyen la plataforma Windows y la plataforma Ubuntu.

  1. La plataforma Windows
    requiere el uso de una tarjeta de red virtual, por lo que debe instalar openVPN,
    configurar la tarjeta de red virtual TAP-windows Adapter V9 y cambiarle el nombre a "net0"
    y luego ejecutar edge.exe para iniciar el nodo.
  2. La plataforma Ubuntu
    ejecuta edge edge.conf para iniciar el nodo
  3. Configurar borde.conf
#
#         The configuration file is similar to the command line, with one option per line. An equal
#        sign '=' should be used between key and value. Example: -c=mynetwork or --community=mynetwork
#        This file contains a basic configuration example, please refer to the help (-h) for the full
#        list of available options.
#
#       -d|--tun-device
#        Specifies the name of the TUN interface. 
#虚拟网卡名称
-d=net0
#
#       -c|--community
#        Specifies the n2n community name the edge belongs to.
#虚拟节点所属组
-c=group
#
#       -k
#        Sets the encryption key (ASCII). The environment variable N2N_KEY=<key> can also be used. 
#虚拟节点所属组密码
-k=pass
#
#       -m
#        Specified the MAC address for the TAP interface (random otherwise).
#
# -m=DE:AD:BE:EF:99:99
#
#       -a
#        Sets the interface address. For DHCP use '-r -a dhcp:0.0.0.0'.
#虚拟地址IP
-a=182.22.22.22
#
#       -p
#        Sets the local UDP port to a fixed port.
#
-p=50001
#
#       -l|--supernode-list
#        Specifies the supernode IP and port.
#公网IP:端口
-l=*.*.*.*:7777
#

Supongo que te gusta

Origin blog.csdn.net/xwb_12340/article/details/132343692
Recomendado
Clasificación