{"id":3943,"date":"2023-10-08T15:28:59","date_gmt":"2023-10-08T15:28:59","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3943"},"modified":"2023-10-08T15:29:00","modified_gmt":"2023-10-08T15:29:00","slug":"tailscale-quick-vpn-to-cctv-on-synology-nas","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3943","title":{"rendered":"Tailscale Quick VPN to CCTV on Synology NAS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Tailscale is a great little tool to allow you to setup your VPN between all sorts of devices and without the worry about issues like Firewalls or setting up VPN servers\/concentrators. There&#8217;s loads of documentation on how to setup Tailscale, so I won&#8217;t repeat that here, but i&#8217;ll run through a quick example of something I wanted to have setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have a Synology NAS, which I leave running all the time, I also have a CCTV DVR on the network which I like to access to watch footage or check in on things. The CCTV DVR has no built in methods for secure access via the Internet, so I&#8217;ve setup a Raspberry Pi running OpenVPN, it works quite nicely, but its a bit fiddly, and also it being a Raspberry Pi and on all the time, I get oddities with the MicroSD cards failing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tailscale however gives me additional and easier options, so I wanted to get that setup from my Android phone and my Synology NAS so I could access the CCTV DVR on my network, and additionally to access media from my Synology NAS when on the go.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advertise Routes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After installing Tailscale on the NAS and it joining the network, I want to be able to reach the CCTV DVR on my network, for this you require a &#8220;Subnet Router&#8221;. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is no GUI to enable this, so you need to temporarily enable SSH on your Synology NAS, then run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tailscale up --advertise-routes=&lt;My Route> --reset<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Where &lt;My Route> is the IP subnet with subnet mask of your internal network, so for example: 192.168.10.0\/24.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You then need to authorise this subnet within the tailscale web console by clicking the three dots &#8220;&#8230;&#8221; and then selecting &#8220;Edit Routing Settings&#8230;&#8221;, once selected turn on the subnet which should now have appeared within the list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should now find that you may access both the Synology NAS resources, but also anything on the network you advertised into your Tailscale network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Great stuff!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tailscale is a great little tool to allow you to setup your VPN between all sorts of devices and without the worry about issues like Firewalls or setting up VPN servers\/concentrators. There&#8217;s loads of documentation on how to setup Tailscale, so I won&#8217;t repeat that here, but i&#8217;ll run through a quick example of something &#8230; <a title=\"Tailscale Quick VPN to CCTV on Synology NAS\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=3943\" aria-label=\"Read more about Tailscale Quick VPN to CCTV on Synology NAS\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-3943","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3943"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3943\/revisions"}],"predecessor-version":[{"id":3944,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3943\/revisions\/3944"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}