<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VPN &#8211; BeatificaBytes</title>
	<atom:link href="https://www.BeatificaBytes.be/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Mon, 02 Apr 2018 14:21:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>Use a VPN between an Android mobile and a Synology NAS via Proximus network</title>
		<link>https://www.BeatificaBytes.be/use-a-vpn-between-an-android-mobile-and-a-synology-nas-via-proximus-network/</link>
					<comments>https://www.BeatificaBytes.be/use-a-vpn-between-an-android-mobile-and-a-synology-nas-via-proximus-network/#comments</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Mon, 02 Apr 2018 14:21:31 +0000</pubDate>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[Proximus]]></category>
		<category><![CDATA[VPN]]></category>
		<guid isPermaLink="false">http://www.BeatificaBytes.be/?p=3797</guid>

					<description><![CDATA[I spent hours trying to figure out why I couldn&#8217;t connect my Galaxy S7 onto my Synology using a PPTP VPN on the Proximus 3G/4G [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">I spent hours trying to figure out why I couldn&#8217;t connect my Galaxy S7 onto my Synology using a PPTP VPN on the Proximus 3G/4G Network (Belgium) while it was working fine if connected via WiFi.</p>
<p style="text-align: justify;">Finally, I gave up and configured a L2TP/IPSec VPN. This one worked immediately like a charm, both on WiFi and 3G/4G. I am quite sure this is due to Proximus configuring my profile to use CGN (Carrier Grade NAT).</p>
<p style="text-align: justify;"><span class="collapseomatic " id="id69b291463e3d5"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b291463e3d5'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b291463e3d5" class="collapseomatic_content ">
<p>I was initially inspired by <a href="https://medium.com/@alexewerlof/using-synology-diskstation-as-a-vpn-server-using-built-in-android-vpn-client-f1b28f0d4560" target="_blank" rel="noopener noreferrer">this post</a> (&#8220;Using Synology DiskStation as a VPN server using built-in Android VPN client&#8221;). So;</p>
<ul>
<li style="text-align: justify;">I did first configure my Synology VPN Server to use PPTP as explained <a href="https://www.synology.com/en-us/knowledgebase/DSM/help/VPNCenter/vpn_setup" target="_blank" rel="noopener noreferrer">here</a> (Official Knowledge base Synology)</li>
<li>Next, I did open my Synology Firewall (port 1723 for PPTP) via the Control Panel &gt; Security &gt; Firewall &gt; Edit Rules &gt; Edit an entry to Allow &gt; Select Built-in applications &gt; VPN Server (PPTP)</li>
</ul>
<p><a href="/wp-content/uploads/2018/04/VPNFirewallNas.png"><img decoding="async" class="aligncenter wp-image-3798 size-medium" src="/wp-content/uploads/2018/04/VPNFirewallNas-300x158.png" alt="Open Firewall Synology for VPN" width="300" height="158" /></a></p>
<ul>
<li>Then, I did configure my Modem to route the TCP port 1723 to my NAS via Access Control &gt; Port Mapping</li>
</ul>
<p><a href="/wp-content/uploads/2018/04/VPNProximusConfig1.png"><img fetchpriority="high" decoding="async" class="aligncenter wp-image-3799 size-medium" src="/wp-content/uploads/2018/04/VPNProximusConfig1-300x176.png" alt="Configure Proximus Modem Route" width="300" height="176" /></a></p>
<p><a href="/wp-content/uploads/2018/04/VPNProximusConfig2.png"><img decoding="async" class="aligncenter wp-image-3800 size-medium" src="/wp-content/uploads/2018/04/VPNProximusConfig2-300x170.png" alt="Configure Proximus Modem Route" width="300" height="170" /></a></p>
<ul>
<li>Finally, I configured a PPTP VPN on my Galaxy S7 via Settings &gt; Connections &gt; More connection settings &gt; VPN &gt; ADD VPN</li>
</ul>
<p>It worked immediately while connecting my Galaxy S7 via WiFi. But if failed while connected via 3G/4G. To investigate, I did enable the firewall of my dd-wrt router (placed between my modem and my NAS) and configured it to send all its firewall messages to the syslog server of my Synology (the &#8220;Log Center&#8221;). I those logs, I found packets corresponding most probably to the VPN requests from my Galaxy S7 (They were only arriving when I was trying to establish a connection). Those were not coming from my Galaxy S7&#8217;s IP. Instead, they were coming from another Proximus IP, with a protocol 47 (Generic Route Encapsulation)?! Could this be due to Proximus configuring my profile to use CGN (Carrier Grade NAT)? Unfortunately, I couldn&#8217;t check and reconfigure this myself as the option is not available anymore via the MyProximus administration interface&#8230;</p>
<p>So, I decided to give up with this PPTP VPN and use a more secure but less performant VPN: L2TP/IPSEC with a PSK (IPsec pre-shared key). And miracle, after opening and routing the UDP ports 500, 1701 and 4500, it worked !</p>
<p style="text-align: justify;"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_3797" class="pvc_stats total_only  " data-element-id="3797" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img loading="lazy" decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/use-a-vpn-between-an-android-mobile-and-a-synology-nas-via-proximus-network/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Create a VPN to download from a Synology</title>
		<link>https://www.BeatificaBytes.be/create-a-vpn-to-download-from-a-synology/</link>
					<comments>https://www.BeatificaBytes.be/create-a-vpn-to-download-from-a-synology/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Mon, 26 Dec 2016 19:53:43 +0000</pubDate>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[VPN]]></category>
		<guid isPermaLink="false">http://www.BeatificaBytes.be/wordpress/?p=2786</guid>

					<description><![CDATA[In order to hide my NAS, I wanted it to use its own VPN, while my public IP was still visible when surfing with any [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">In order to hide my NAS, I wanted it to use its own VPN, while my public IP was still visible when surfing with any other devices in my LAN.</p>
<p style="text-align: justify">To do so, I subscribed to HMA! (HideMyAss!) and applied their <a href="https://support.hidemyass.com/hc/en-us/articles/203548726-Synology-NAS-VPN-Setup-OpenVPN-PPTP-L2TP">configuration procedure</a> on my Synology. Et voilà.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b29146404e1"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b29146404e1'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b29146404e1" class="collapseomatic_content ">
<p style="text-align: justify">I did try both a L2TP and a OpenVPN VPN with success. Tricks:</p>
<ul style="text-align: justify">
<li>For a L2TP VPN, use your PPTP password and NOT your account password</li>
<li>For a OpenVPN VPN, use your account password</li>
<li>Although using Port Forwarding to access my NAS from internet, I did not had to open <a href="https://support.hidemyass.com/hc/en-us/articles/202720306-VPN-Protocol-Comparison">the required ports</a> !!!
<ul>
<li>L2TP: UDP 500, 4500 and 1701</li>
<li>Open VPN : 443 if using TCP, 553 is using UDL</li>
</ul>
</li>
</ul>
<ul style="text-align: justify">
<li>If you are using a DDNS, go to the  Control Panel &gt; External Access and Click Update to verify the public IP of your NAS. It must now be your VPN IP.</li>
<li>Check that downloading a torrent (<a href="https://torguard.net/checkmytorrentipaddress.php">with this procedure</a>), your tracker IP is your VPN IP.</li>
<li>Check you IP calling <a href="https://www.ipify.org/">ipify</a> from your NAS.
<ul>
<li>A very simple way to do this is to call the following php page on your Web Station:</li>
</ul>
</li>
</ul>
<blockquote>
<pre>&lt;?php 
 $ip = file_get_contents('https://api.ipify.org');
 echo "My public IP address is: " . $ip;
?&gt;</pre>
</blockquote>
<ul style="text-align: justify">
<li>Soon after enabling the VPN, I started to be attacked on Telnet port! I am using Security&#8217;s Auto-Block feature to prevent brute force attacks.</li>
</ul>
<ul style="text-align: justify">
<li>On a mobile device (or anything else) connected directly to Internet (not via your LAN), type your VPN IP in a browser. You should see the default home page of your web station if this one is enabled.
<ul>
<li>I would recommend to replace this default page by a php page returning a header 404.</li>
</ul>
</li>
</ul>
<blockquote>
<pre>&lt;?php
 header("HTTP/1.0 404 Not Found");
?&gt;</pre>
</blockquote>
<ul style="text-align: justify">
<li>If you are using a DDNS on your NAS, you won&#8217;t be able to access your router and VDSL modem via that domain name. Indeed, only your NAS is accessible via this VPN IP. If possible, configure another DDNS on your VDSL modem or router.
<ul>
<li>Ex.: I am using duckdns.org for free. They have a <a href="https://www.duckdns.org/install.jsp">great support page here</a> with detailed configurations for many different devices.</li>
<li>Doing so, you can access your NAS and your router or modem via their own Domain name.</li>
</ul>
</li>
</ul>
<ul style="text-align: justify">
<li>&#8220;Tested OK&#8221; both when accessed from LAN or from Internet:
<ul>
<li>Download Station via Synology Download Station for Chrome (https://www.download-station-extension.com)</li>
<li>JDownloader via Chrome extension and via https://my.jdownloader.org</li>
<li>Plex Server via App or via http://DDNS name:port/web or via http://plex.tv</li>
<li>DSM via its admin port</li>
<li>Apps: DS Cam, DS File, DS Audio, DS Get, DS Photo, DS Video, DS Cloud and DS Note are all wokring fine using Quick Connect (All those I tested via their DDNS name + custom port or DSM admin port worked too)</li>
<li>Cloud Sync (with Hubic)</li>
<li>FTP Server</li>
</ul>
</li>
</ul>
<p style="text-align: justify"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_2786" class="pvc_stats total_only  " data-element-id="2786" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img loading="lazy" decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/create-a-vpn-to-download-from-a-synology/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
