{"id":382,"date":"2023-12-12T09:27:23","date_gmt":"2023-12-12T17:27:23","guid":{"rendered":"https:\/\/junsun.net\/wordpress\/?p=382"},"modified":"2023-12-12T09:39:16","modified_gmt":"2023-12-12T17:39:16","slug":"set-up-tailscale-vpn-server-on-aws","status":"publish","type":"post","link":"https:\/\/junsun.net\/wordpress\/2023\/12\/set-up-tailscale-vpn-server-on-aws\/","title":{"rendered":"Set Up TailScale VPN Server on AWS"},"content":{"rendered":"\n<p>TailScale website has an excellent collection of  documents.  I just want to quickly jot down what I did for simpler reference later.  A couple of notes:<\/p>\n\n\n\n<ul><li>It runs on AWS EC2 instance (t3a.micro) with Ubuntu 22.04<\/li><li>It is a server node, a.k.a. exit node in TailScale terms.<\/li><\/ul>\n\n\n\n<h2>Install<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/pkgs.tailscale.com\/stable\/ubuntu\/jammy.noarmor.gpg | sudo tee \/usr\/share\/keyrings\/tailscale-archive-keyring.gpg >\/dev\/null\r\ncurl -fsSL https:\/\/pkgs.tailscale.com\/stable\/ubuntu\/jammy.tailscale-keyring.list | sudo tee \/etc\/apt\/sources.list.d\/tailscale.list\r\r\nsudo apt-get update\r\r\nsudo apt-get install tailscale\r\n<\/code><\/pre>\n\n\n\n<h2>First-time setup<\/h2>\n\n\n\n<p>We need to <a href=\"https:\/\/tailscale.com\/\">create an account<\/a> first.  Then we will be asked to login and make this machine as server, i.e., exit node.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tailscale up   # perform web login\nsudo tailscale up --advertise-exit-node\r\n<\/code><\/pre>\n\n\n\n<p>Log into TailScale website, <\/p>\n\n\n\n<ul><li>click on the &#8220;&#8230;&#8221; setting button for the server<\/li><li>select &#8220;Edit routing &#8230;&#8221; menu<\/li><li>Check &#8220;Use as exit node&#8221; button.<\/li><\/ul>\n\n\n\n<h2>Usage<\/h2>\n\n\n\n<p>To use for yourself, simply turn on tailscale on your phone\/PC, and use the above server as the exit node.<\/p>\n\n\n\n<p>To share the server with others, go to tailscale web portal and click on &#8220;Share &#8230;&#8221; button for the server.<\/p>\n\n\n\n<h2>Disable\/remove TailScale<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl disable --now tailscaled     # to disable\n\nsudo apt purge tailscale                    # to uninstall<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TailScale website has an excellent collection of documents. I just want to quickly jot down what I did for simpler reference later. A couple of notes: It runs on AWS EC2 instance (t3a.micro) with Ubuntu 22.04 It is a server node, a.k.a. exit node in TailScale terms. Install First-time setup We need to create an &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/junsun.net\/wordpress\/2023\/12\/set-up-tailscale-vpn-server-on-aws\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Set Up TailScale VPN Server on AWS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[85,83],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/382"}],"collection":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":3,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":386,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/posts\/382\/revisions\/386"}],"wp:attachment":[{"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junsun.net\/wordpress\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}