{"id":1000,"date":"2022-01-09T00:00:00","date_gmt":"2022-01-09T00:00:00","guid":{"rendered":"https:\/\/www.anderson.nl\/?p=1000"},"modified":"2024-11-17T16:29:23","modified_gmt":"2024-11-17T16:29:23","slug":"openvpn-server-in-aws","status":"publish","type":"post","link":"https:\/\/anderson.nl\/?p=1000","title":{"rendered":"OpenVPN AS als Amazon Web Services"},"content":{"rendered":"\n<p>Wil je 1 jaar gratis een OpenVPN Access Server gebruiken. Dat kan in de cloud bij Amazon Web Services. Zorg er voor dat de server voor het einde van het eerste jaar verwijderd is ander brengt AWS hier kosten voor in rekening. Maak een account aan op <a rel=\"noreferrer noopener\" href=\"https:\/\/aws.amazon.com\" target=\"_blank\">https:\/\/aws.amazon.com<\/a>, let op je hebt wel een creditcard nodig. Hier op wordt voor de controle een aantal dagen \u20ac1.00 vast gehouden. Het kan tot 24 uur duren voor het account geactiveerd is.<\/p>\n\n\n\n<p>Als je bent aangemeld klik je op <strong>Sign in to the Console<\/strong>, <strong>Services<\/strong> kies hier <strong>Compute<\/strong>, <strong>EC2<\/strong> klik op <strong>Lanch instance<\/strong>.<br>Kies in het linker menu voor <strong>AWS Market place<\/strong>, <strong>Infrastructure Software<\/strong> kies nu <strong>OpenVPN Access Server (Free tier eligible). <\/strong>Let op dat je de gratis<strong> Free tier eligible kiest.<\/strong> Kies <strong>Select<\/strong>, <strong>Continue<\/strong>.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2024\/03\/OpenVPN.png\" alt=\"\" class=\"wp-image-1135\"\/><\/figure>\n\n\n\n<p>Let op dat je nu de <strong>t2.micro<\/strong> selecteert, dit is de gratis versie. Klik nu op <strong>Review and Launch<\/strong>, <strong>Launch.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.anderson.nl\/wp-content\/uploads\/2022\/01\/image-21-1024x203.png\" alt=\"\" class=\"wp-image-1006\"\/><\/figure>\n\n\n\n<p>In het volgende scherm kan je een Key Pair maken, doe dit wat dat kan hierna niet mee. Klik op <strong>Download Key Pair<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1057\" height=\"813\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-22.png\" alt=\"\" class=\"wp-image-1008\" style=\"width:545px;height:auto\"\/><\/figure>\n\n\n\n<p>Klik op <strong>Launch Instances<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"494\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-23.png\" alt=\"\" class=\"wp-image-1009\" style=\"width:191px;height:159px\"\/><\/figure>\n\n\n\n<p>Klik op het <strong>Instance ID <\/strong>om alle informatie over jou server te zien.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1368\" height=\"199\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-24.png\" alt=\"\" class=\"wp-image-1011\" style=\"width:562px;height:auto\"\/><\/figure>\n\n\n\n<p>Klik nu rechts op het <strong>Instance ID<\/strong> en kies <strong>Connect<\/strong>, ga naar het Tabblad <strong>SSH Client<\/strong>, bij optie 4. Example zie je een voorbeeld staan hoe je kan aanmelden op je server met het Windows 10 ssh commando. Open de command prompt en plak dit commando hier (pas de locatie van het pem bestand aan), Enter, type <strong>Yes<\/strong> om de fingerprint op te slaan.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1238\" height=\"31\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-26.png\" alt=\"\" class=\"wp-image-1014\"\/><\/figure>\n\n\n\n<p>Beantwoord alle vragen die je krijgt met een Enter of pas het aan als je dat wil. Let op je kan hierna niet meer aanmelden met root, pas het command aan van root naar openvpnas.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1293\" height=\"34\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-27.png\" alt=\"\" class=\"wp-image-1016\"\/><\/figure>\n\n\n\n<p>We passen nu nog het wachtwoord van de user <strong>openvpn<\/strong> aan, dit is de gebruiker waar je straks mee in de portal aanmeld. Gebruik het onderstaande commando.<br><strong><code>sudo passwd openvpn<\/code><\/strong><\/p>\n\n\n\n<p>Meld nu aan op je OpenVPN server, type het IPv4 adres dat je bij de server gegevens vindt. Als je alle gegevens standaard hebt gehouden dan is dit <strong>https:\/\/&lt;jou ip adres&gt;:943\/admin\/<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1251\" height=\"809\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-28.png\" alt=\"\" class=\"wp-image-1018\" style=\"width:480px;height:auto\"\/><\/figure>\n\n\n\n<p>Klik op<strong> Agree<\/strong>, laat de Activation Key voor wat het is, die hebben we nog niet nodig.<\/p>\n\n\n\n<p>Klik in het menu links op <strong>VPN Settings<\/strong>, scroll naar beneden en zet de optie <strong>Should client Internet traffic be routed through the VPN? <\/strong>op <strong>Yes<\/strong>, klik onderaan op de pagina op <strong>Save Settings<\/strong>. Bovenaan de pagina klik je op <strong>Update Running Server<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1727\" height=\"890\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-29.png\" alt=\"\" class=\"wp-image-1021\" style=\"width:478px;height:auto\"\/><\/figure>\n\n\n\n<p>We gaan nu de client installeren, we melden met dezelfde gegevens aan op het user portal deze vindt je op  <strong>https:\/\/&lt;jou ip adres&gt;:943<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1249\" height=\"807\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-30.png\" alt=\"\" class=\"wp-image-1024\" style=\"width:489px;height:auto\"\/><\/figure>\n\n\n\n<p>Kies jou besturingssysteem en download de client en installeer deze, negeer alle meldingen die je krijgt.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1246\" height=\"1087\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-31.png\" alt=\"\" class=\"wp-image-1025\" style=\"width:489px;height:auto\"\/><\/figure>\n\n\n\n<p>Als de <strong>OpenVPN Connect<\/strong> tool gestart is meld je aan met de <strong>openvpn<\/strong> gebruiker en je hebt verbinding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"1036\" src=\"http:\/\/anderson.nl\/wp-content\/uploads\/2022\/01\/image-32.png\" alt=\"\" class=\"wp-image-1028\" style=\"width:484px;height:auto\"\/><\/figure>\n\n\n\n<p>Ga naar <a href=\"https:\/\/www.watismijnip.nl\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.watismijnip.nl<\/a> om te controleren of je nu een AWS IP adres hebt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wil je 1 jaar gratis een OpenVPN Access Server gebruiken. Dat kan in de cloud bij Amazon Web Services. Zorg er voor dat de server voor het einde van het eerste jaar verwijderd is ander brengt AWS hier kosten voor in rekening. Maak een account aan op https:\/\/aws.amazon.com, let op <a href=\"https:\/\/anderson.nl\/?p=1000\" class=\"btn btn-link continue-link\">Lees verder<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,9,10,19],"tags":[],"class_list":["post-1000","post","type-post","status-publish","format-standard","hentry","category-aws","category-linux","category-macos","category-windows-10"],"_links":{"self":[{"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anderson.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1000"}],"version-history":[{"count":2,"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions"}],"predecessor-version":[{"id":3020,"href":"https:\/\/anderson.nl\/index.php?rest_route=\/wp\/v2\/posts\/1000\/revisions\/3020"}],"wp:attachment":[{"href":"https:\/\/anderson.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anderson.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anderson.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}