{"id":2532,"date":"2024-12-14T17:32:04","date_gmt":"2024-12-14T16:32:04","guid":{"rendered":"https:\/\/labalec.fr\/erwan\/?p=2532"},"modified":"2024-12-14T21:41:49","modified_gmt":"2024-12-14T20:41:49","slug":"wireguard-vs-openvpn","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=2532","title":{"rendered":"Wireguard vs OpenVPN"},"content":{"rendered":"\n<p>I have been using NordVPN for years now.<\/p>\n\n\n\n<p>Thus I never wanted to install the NordVPN client (too heavy, too many features I dont need).<\/p>\n\n\n\n<p>Hence I have been using OpenVPN (config files can be downloaded from NordVPN web site).<\/p>\n\n\n\n<p>Lately I have read that Wireguard was quicker and that NordVPN was also supporting this protocol.<\/p>\n\n\n\n<p>Below the procedure I have been using to create a Wireguard config (not as friendly as OpenVPN&#8230;).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>go to&nbsp;<a href=\"https:\/\/my.nordaccount.com\/dashboard\/nordvpn\/manual-configuration\/\">https:\/\/my.nordaccount.com\/dashboard\/nordvpn\/manual-configuration\/<\/a>&nbsp;and create an access token<\/li>\n\n\n\n<li>get your private key<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -s -u token:&lt;ACCESS_TOKEN&gt; https:\/\/api.nordvpn.com\/v1\/users\/services\/credentials | jq -r .nordlynx_private_key<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>get server info<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -s \"https:\/\/api.nordvpn.com\/v1\/servers\/recommendations?&amp;filters\\[servers_technologies\\]\\[identifier\\]=wireguard_udp&amp;limit=1\" | jq -r \".[]|.hostname, .station, (.locations|.[]|.country|.city.name), (.locations|.[]|.country|.name), (.technologies|.[].metadata|.[].value), .load\"<\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>create wireguard config:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">[Interface]<br>PrivateKey = &lt;PRIVATE_KEY&gt; # from step 2<br>Address = 10.5.0.2\/32 # this IP is always the same<br>DNS = 9.9.9.9 # your favorite DNS server<br><br>[Peer]<br>PublicKey = &lt;PUBLIC_KEY&gt; # from step 3<br>AllowedIPs = 0.0.0.0\/0, ::\/0 # route everything<br>Endpoint = &lt;ENDPOINT&gt;:51820 # endpoint or IP from step 3, the port is always the same<br><\/pre>\n\n\n\n<p><br><br>And indeed, whereas I am getting circa 100 mb\/s with OpenVPN on speedtest.net over a theoritical 1gb\/s line, I am now able to reach 500mb\/s with Wireguard \ud83d\ude42<\/p>\n\n\n\n<p>PS : i was able to run this procedure on both Linux and Windows (you need curl and jq on installed on your system).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been using NordVPN for years now. Thus I never wanted to install the NordVPN client (too heavy, too many features I dont need). Hence I have been using OpenVPN (config files can be downloaded from NordVPN web site). Lately I have read that Wireguard was quicker and that NordVPN was also supporting this <a href='https:\/\/labalec.fr\/erwan\/?p=2532' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2532","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2532"}],"version-history":[{"count":8,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2532\/revisions"}],"predecessor-version":[{"id":2541,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2532\/revisions\/2541"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}