发新帖

N2N客户端使用方法

admin 11月前 1413


N2N的客户端程序名为:edge


edge程序用法:

#edge-a 10.10.0.1 -c n2n -k n2n -l n2n.lu8.win:10082
edge -a 
虚拟IP -c 你的虚拟网名 -k 密码  -l supernodeip:端口

edge -d <tun device> -a [static:|dhcp:]<tun IP address> -c <community> [-k <encrypt key> | -K <key file>] [-s <netmask>] [-u <uid> -g <gid>][-f][-m <MAC address>]
-l <supernode host:port> [-p <local port>] [-M <mtu>] [-r] [-E] [-v] [-t <mgmt port>] [-b] [-h]

-d <tun device>          
| tun device name
-a <mode:address>        | Set interface address. For DHCP use '-r -a dhcp:0.0.0.0'
-c <community>           | n2n community name the edge belongs to.
-k <encrypt key>         | Encryption key (ASCII) - also N2N_KEY=<encrypt key>. Not with -K.
-K <key file>            | Specify a key schedule file to load. Not with -k.
-s <netmask>             | Edge interface netmask in dotted decimal notation (255.255.255.0).
-l <supernode host:port> | Supernode IP:port
-b                       | Periodically resolve supernode IP
                         : (when supernodes are running on dynamic IPs)
-p <local port>          | Fixed local UDP port.
-u <UID>                 | User ID (numeric) to use when privileges are dropped.
-g <GID>                 | Group ID (numeric) to use when privileges are dropped.
-f                       | Do not fork and run as a daemon; rather run in foreground.
-m <MAC address>         | Fix MAC address for the TAP interface (otherwise it may be random)
                         : eg. -m 01:02:03:04:05:06
-M <mtu>                 | Specify n2n MTU of edge interface (default 1400).
-r                       | Enable packet forwarding through n2n community.
-E                       | Accept multicast MAC addresses (default=drop).
-v                       | Make more verbose. Repeat as required.
-t                       | Management UDP Port (for multiple edges on a machine).

Environment variables:
  N2N_KEY                | Encryption key (ASCII). Not with -K or -k.

Windows版方法1:

http://www.vpnhosting.cz/n2nguien.exe提供了一个安装包,里面包含了V1和V2版本,注意使用时和自己所选版本的匹配。

单击advanced按键,勾选Enable packet forwarding through n2n community

注意在win7下,安装目录下的所有可执行文件,均需要以管理员身份运行。


Windows版方法2(推荐):

QQ群:114888319 群文件 "n2n_win_V0.5(支持100M网卡,不报毒,测试专用).rar"


首先,检查是否有安装虚拟网卡,如果没有直接点击安装,如果有就继续下一步参数配置。


然后,重点填写方框内的相关信息,注意远程IP的端口号和版本必须对应。

最后,点击启动程序。

V1版:启动成功后的提示信息如下:

V2版:启动成功后的提示信息如下:

×
打赏作者
最新回复 (0)
返回
发新帖
admin
主题数
17
帖子数
0
注册排名
1