New upstream version 3.1.1
This commit is contained in:
parent
4e9934e5ec
commit
e7b41df57b
229 changed files with 57000 additions and 12055 deletions
41
packages/etc/n2n/edge.conf.sample
Normal file
41
packages/etc/n2n/edge.conf.sample
Normal file
|
@ -0,0 +1,41 @@
|
|||
#
|
||||
# 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=n2n0
|
||||
#
|
||||
# -c|--community
|
||||
# Specifies the n2n community name the edge belongs to.
|
||||
#
|
||||
-c=mynetwork
|
||||
#
|
||||
# -k
|
||||
# Sets the encryption key (ASCII). The environment variable N2N_KEY=<key> can also be used.
|
||||
#
|
||||
-k=mypassword
|
||||
#
|
||||
# -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'.
|
||||
#
|
||||
-a=1.2.3.4
|
||||
#
|
||||
# -p
|
||||
# Sets the local UDP port to a fixed port.
|
||||
#
|
||||
-p=50001
|
||||
#
|
||||
# -l|--supernode-list
|
||||
# Specifies the supernode IP and port.
|
||||
#
|
||||
-l=7.8.9.0:7777
|
||||
#
|
15
packages/etc/n2n/supernode.conf.sample
Normal file
15
packages/etc/n2n/supernode.conf.sample
Normal file
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# 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
|
16
packages/etc/systemd/system/edge-ntopng@.service.in
Normal file
16
packages/etc/systemd/system/edge-ntopng@.service.in
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=n2n edge process, on %I
|
||||
After=network-online.target syslog.target
|
||||
Wants=network-online.target
|
||||
BindsTo=ntopng.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=
|
||||
ExecStart=/usr/sbin/edge /etc/n2n/edge-%i.conf -f
|
||||
Restart=on-abnormal
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=ntopng.service
|
||||
Alias=
|
15
packages/etc/systemd/system/edge.service.in
Normal file
15
packages/etc/systemd/system/edge.service.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=n2n edge process
|
||||
After=network-online.target syslog.target nfw.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=
|
||||
ExecStart=/usr/sbin/edge /etc/n2n/edge.conf -f
|
||||
Restart=on-abnormal
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=
|
15
packages/etc/systemd/system/edge@.service.in
Normal file
15
packages/etc/systemd/system/edge@.service.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=n2n edge process, on %I
|
||||
After=network-online.target syslog.target nfw.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=
|
||||
ExecStart=/usr/sbin/edge /etc/n2n/edge-%i.conf -f
|
||||
Restart=on-abnormal
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=
|
16
packages/etc/systemd/system/supernode.service.in
Normal file
16
packages/etc/systemd/system/supernode.service.in
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=n2n supernode process
|
||||
After=network-online.target syslog.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=n2n
|
||||
Group=n2n
|
||||
ExecStart=/usr/sbin/supernode /etc/n2n/supernode.conf -f
|
||||
Restart=on-abnormal
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=
|
Loading…
Add table
Add a link
Reference in a new issue