{"id":182,"date":"2017-11-01T15:10:01","date_gmt":"2017-11-01T15:10:01","guid":{"rendered":"https:\/\/langhard.net\/?p=182"},"modified":"2018-10-12T07:50:07","modified_gmt":"2018-10-12T07:50:07","slug":"ubuntu-softether-open-vpn","status":"publish","type":"post","link":"https:\/\/langhard.net\/?p=182","title":{"rendered":"Ubuntu softether Open VPN"},"content":{"rendered":"<div class=\"title\">\n<h1 id=\"title\">SoftEther VPN Project<\/h1>\n<\/div>\n<div class=\"text\">\n<div id=\"page-top\">\n<div id=\"topic\">\n<div id=\"pageText\">\n<p>SoftEther VPN Project\u00a0develops and distributes\u00a0<strong><a title=\"Why SoftEther VPN?\" rel=\"internal\" href=\"https:\/\/www.softether.org\/1-features\">SoftEther VPN<\/a><\/strong>,<br \/>\n<em>An Open-Source Free \u200bCross-platform Multi-protocol VPN Program<\/em>,<br \/>\nas an academic project from\u00a0<a class=\"external\" title=\"http:\/\/www.tsukuba.ac.jp\/english\/\" rel=\"external nofollow noopener\" href=\"http:\/\/www.tsukuba.ac.jp\/english\/\" target=\"_blank\">University of Tsukuba<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2 class=\"editable\">What is SoftEther VPN<\/h2>\n<p><a title=\"Why SoftEther VPN?\" rel=\"internal\" href=\"https:\/\/www.softether.org\/1-features\"><strong>SoftEther VPN<\/strong><\/a><span>\u00a0<\/span><em>(&#8221;SoftEther&#8221; means &#8221;Software Ethernet&#8221;)<\/em><span>\u00a0<\/span>is one of the world&#8217;s most powerful and easy-to-use multi-protocol VPN software. It runs on Windows, Linux, Mac, FreeBSD and Solaris.<\/p>\n<h6>Here is a guide on how to setup your own Softether VPN server.<\/h6>\n<h4>Preparing the server<\/h4>\n<p>Upgrade the system:<\/p>\n<pre># sudo apt update\r\n# sudo apt upgrade<\/pre>\n<p>Install build-essential for compilation purpose:<\/p>\n<pre># sudo apt install build-essential<\/pre>\n<pre># sudo nano <span>\/etc\/sysctl.conf<\/span><\/pre>\n<p>Find and change #net\/ipv4\/ip_forward=1<br \/>\nTo<br \/>\nnet\/ipv4\/ip_forward=1<\/p>\n<p>Ctrl+x and Y and then hit Enter<\/p>\n<p>Reboot for the changes to take effect!<\/p>\n<h4 id=\"h5-installing-softether\">Installing SoftEther<\/h4>\n<pre># wget http:\/\/www.softether-download.com\/files\/softether\/v4.24-9651-beta-2017.10.23-tree\/Linux\/SoftEther_VPN_Server\/64bit_-_Intel_x64_or_AMD64\/softether-vpnserver-v4.24-9651-beta-2017.10.23-linux-x64-64bit.tar.gz<\/pre>\n<p>Uncompress the source<\/p>\n<pre># tar xzf softether-vpnserver-v4.24-9651-beta-2017.10.23-linux-x64-64bit.tar.gz<\/pre>\n<h3 id=\"h5-3-install-from-the-sources\">Install from the source<\/h3>\n<pre># cd vpnserver\r\n# sudo make<\/pre>\n<p>During the installation process, we will have to type\u00a01\u00a0to read the Licence Agreement, type\u00a01\u00a0again to confirm that we have read the License Agreement and finally type\u00a01\u00a0to agree the License Agreement. After the installation, we can go through the output to confirm that the whole process went correctly without any error.<\/p>\n<h4>Start the vpn server<\/h4>\n<pre>#\u00a0 sudo .\/vpnserver start<\/pre>\n<h4 id=\"h6-configuration-as-a-daemon\">Configuration as a daemon<\/h4>\n<p id=\"h6-1-move-the-installation-folder-to-usr-local\">Move the installation folder to \/usr\/local<\/p>\n<pre># cd ..\r\n# sudo mv vpnserver \/usr\/local<\/pre>\n<p id=\"h6-2-give-appropriate-rights-to-files\">Give appropriate rights to files<\/p>\n<pre># cd \/usr\/local\/vpnserver\/\r\n# sudo chmod 600 *\r\n# sudo chmod 700 vpnserver\r\n# sudo chmod 700 vpncmd<\/pre>\n<p id=\"h6-3-create-a-systemd-service\">Create a systemd service<\/p>\n<pre># sudo nano \/lib\/systemd\/system\/vpnserver.service<\/pre>\n<p><span>Copy and paste the following content :<\/span><\/p>\n<pre>[Unit]\r\nDescription=SoftEther VPN Server\r\nAfter=network.target\r\n[Service]\r\nType=forking\r\nExecStart=\/usr\/local\/vpnserver\/vpnserver start\r\nExecStop=\/usr\/local\/vpnserver\/vpnserver stop\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<pre><span>sudo systemctl enable vpnserver<\/span><\/pre>\n<h4 id=\"h7-1-set-an-admin-password-for-vpncmd\">Set an admin password for vpncmd<\/h4>\n<pre># cd \/usr\/local\/vpnserver\/\r\n# sudo .\/vpncmd<\/pre>\n<p>select\u00a01\u00a0for \u201cManagement of VPN Server or VPN Bridge\u201d, then just press\u00a0Enter\u00a0for the following questions until you get\u00a0VPN Server&gt;\u00a0prompt. At the command prompt type.<\/p>\n<pre>VPN Server&gt;\u00a0ServerPasswordSet\r\n\r\n# Password: ********\r\n# Confirm input: ********<\/pre>\n<p>Ctrl + c to exit VPN Server terminal<\/p>\n<h4 id=\"h7-2-create-a-virtual-hub\">Create a virtual hub (windows)<\/h4>\n<p>Download softEther server manager for windows<br \/>\nhttp:\/\/www.softether-download.com\/en.aspx?product=softether<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether-vpn_28268.png\" alt=\"\" width=\"32\" height=\"32\" class=\"alignnone wp-image-185\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether-vpn_28268.png 200w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether-vpn_28268-150x150.png 150w\" sizes=\"auto, (max-width: 32px) 100vw, 32px\" \/>\u00a0Start\u00a0SE-VPN Server Manager (Tools)<\/p>\n<p>Klick New Setting<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether0.png\" alt=\"\" width=\"552\" height=\"728\" class=\"alignnone wp-image-186 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether0.png 552w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether0-227x300.png 227w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/p>\n<ol>\n<li>Type a Setting Name<\/li>\n<li>IP adress to your server<\/li>\n<\/ol>\n<p>Your virtual Hub name will have the DEFAULT until you have setup your VPN Server for the first time.<br \/>\nAnd yout password you set periviously<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether2-1.png\" alt=\"\" width=\"872\" height=\"625\" class=\"alignnone wp-image-192 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether2-1.png 872w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether2-1-300x215.png 300w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether2-1-768x550.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/p>\n<p>Now connect your newly created Softether VPN Server<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether3.png\" alt=\"\" width=\"552\" height=\"728\" class=\"alignnone wp-image-193 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether3.png 552w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether3-227x300.png 227w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/p>\n<p>Mark Remote Access VPN Server Box<br \/>\nThen Next<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether4.png\" alt=\"\" width=\"896\" height=\"735\" class=\"alignnone wp-image-194 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether4.png 896w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether4-300x246.png 300w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether4-768x630.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p>Click Yes\/Ja \ud83d\ude42<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether5.png\" alt=\"\" width=\"524\" height=\"228\" class=\"alignnone wp-image-195 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether5.png 524w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether5-300x131.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/p>\n<p>Name your Virtual Hub, the klick OK. (I named mine VPNcenter, you can name what ever you want)<br \/>\nThis is your login name. ex. johan@VPNcenter<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether6.png\" alt=\"\" width=\"460\" height=\"227\" class=\"alignnone wp-image-196 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether6.png 460w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether6-300x148.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/p>\n<p>Click Exit. This is your random given DNS name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether7.png\" alt=\"\" width=\"832\" height=\"679\" class=\"alignnone wp-image-197 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether7.png 832w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether7-300x245.png 300w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether7-768x627.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>Enable L2TP server Function and Set your IPsec Pre-Shared Key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether8.png\" alt=\"\" width=\"848\" height=\"724\" class=\"alignnone wp-image-198 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether8.png 848w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether8-300x256.png 300w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether8-768x656.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/p>\n<p>Disable VPN Azure<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether9.png\" alt=\"\" width=\"824\" height=\"746\" class=\"alignnone wp-image-199 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether9.png 824w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether9-300x272.png 300w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether9-768x695.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/p>\n<p>Create users and set Local Bridge<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/11\/softether10.png\" alt=\"\" width=\"660\" height=\"710\" class=\"alignnone wp-image-200 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether10.png 660w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/11\/softether10-279x300.png 279w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/p>\n<p>Congratz you just created your first Softether Open VPN Server<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SoftEther VPN Project SoftEther VPN Project\u00a0develops and distributes\u00a0SoftEther VPN, An Open-Source Free \u200bCross-platform Multi-protocol VPN Program, as an academic project from\u00a0University of Tsukuba. What is SoftEther VPN SoftEther VPN\u00a0(&#8221;SoftEther&#8221; means &#8221;Software Ethernet&#8221;)\u00a0is one of the world&#8217;s most powerful and easy-to-use multi-protocol VPN software. It runs on Windows, Linux, Mac, FreeBSD and Solaris. Here is a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":249,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[65,91,69,93,95],"class_list":["post-182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-en","tag-guide-en","tag-lathund-en","tag-linux-en","tag-openvpn-en","tag-softether-en"],"_links":{"self":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":0,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/media\/249"}],"wp:attachment":[{"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}