The ultimate guide to establishing a VPN tunnel with Nebula Overlay Network
*** Copy Right 2020 Kevin Yu. All rights reserved.
*** Author: Kevin Yu
*** Update Time: 2021/05/12
This repo aims to give you clear instructions on how to install, config, and use Nebular in your local network. The Wiki below will guide you how to deploy Nebular Overlay Network on the Cloud.
- Login into the server with root access and copy the binary to
/usr/bin
$ sudo -i
$ cp nebula /usr/bin/nebula
$ cp nebula-cert /usr/bin/nebula-cert
- Create the following systemd unit file for the required service & change permissions per below:
$ touch /lib/systemd/system/nebula.service
$ chmod 0664 /lib/systemd/system/nebula.service
- Add the following content into the
systemd
unit file to define the service
[Unit]
Description=nebula
Wants=basic.target
After=basic.target network.target
Before=sshd.service
[Service]
SyslogIdentifier=nebula
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/nebula -config /etc/nebula/config.yml
Restart=always
[Install]
WantedBy=multi-user.target
- Enable
nebula.service
to run at background when the machine boots up
$ systemctl start nebula
$ systemctl enable nebula
$ systemctl status nebula