Mac and Windows users can use any OpenVPN client. For Linux, there is an official client available for Ubuntu. For Android or iOS, you can use the free OpenVPN Connect app available in the Google Play or iOS App Store. To connect to the server, you can use any OpenVPN compatible client. If a firewall is set up, make sure that the Port and Protocol fields match the firewall exceptions added earlier. You will see a screen like the following: Next, click Add User and add a user to the organization you just created. Begin by clicking Add Organization and entering a name. Here, you will create your organizations and users. Or follow on screen instructions to generate user password. Login with the following information: Username: pritunl Enable auto start MongoDB when system starts. The output to the above command will show `active (running)` status with the PID and Memory/CPU it is consuming. sudo systemctl start mongodbĬheck if mongodb has been started on port 27017 with netstat command: netstat -plntuĬheck if the service has started properly. Update the systemd service with the command stated below: systemctl daemon-reload # `multi-user.target` means the server will be automatically started during boot. # Install tells systemd when the service should be automatically started. # `ExecStart` defines the startup command for MongoDB server.ĮxecStart=/usr/bin/mongod -quiet -config /etc/nf # Key `User` specifies that the server will run under the mongodb user and # Service tells systemd, how the service should be started. sudo vim /etc/systemd/system/rvice #Unit contains the dependencies to be satisfied before the service is started. If you see something different like your mongodb is not running, then probably you need to create the following script and run:Ĭreate a configuration file named rvice in /etc/systemd/system to manage the MongoDB service. The installer has already populated the MongoDB URI. You will see a screen similar to this:Ĭonnect to the database. Open a web browser on your computer, and navigate to , replacing 123.45.67.89 with your VM IP address. Start the Pritunl service: sudo service pritunl start Install Pritunl and its required dependencies: sudo apt-get install python-software-properties pritunl mongodb-org NoteIf you’ve configured the firewall according to the Securing Your Server guide, be sure to add these port ranges to the /etc/ file. Sudo iptables -A INPUT -p `your protocol here` -m `your protocol here` -sport `your_port_here` -dport 1025:65355 -j ACCEPT Sudo iptables -A INPUT -p tcp -m tcp -sport 9700 -dport 1025:65355 -j ACCEPT If you have a firewall running on the Linode, add exceptions for Pritunl’s Web UI and server: sudo iptables -A INPUT -p udp -m udp -sport 9700 -dport 1025:65355 -j ACCEPT Update the package cache sudo apt-get update sudo apt-get update & sudo apt-get upgradeĪdd Pritunl’s APT repository and update the package lists: echo "deb trusty/mongodb-org/3.0 multiverse" > /etc/apt//mongodb-org-3.0.listĮcho "deb trusty main" > /etc/apt//pritunl.listĪdd repo keys for apt to validate against apt-key adv -keyserver hkp:// -recv 7F0CEB10Īpt-key adv -keyserver hkp:// -recv CF8E292A Update your bare-bone and freshly installed Ubuntu 16 system.
0 Comments
Leave a Reply. |