{"id":465,"date":"2021-08-03T00:37:02","date_gmt":"2021-08-02T19:07:02","guid":{"rendered":"https:\/\/blog.al-zakirah202.familyds.com\/?p=465"},"modified":"2021-08-03T00:37:02","modified_gmt":"2021-08-02T19:07:02","slug":"fix-vpn-connected-but-server-not-reachable-on-mac","status":"publish","type":"post","link":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/2021\/08\/03\/fix-vpn-connected-but-server-not-reachable-on-mac\/","title":{"rendered":"Fix: VPN connected but server not reachable on Mac"},"content":{"rendered":"<p>Lately, I was experiencing an issue on my new M1 MacBook Pro where I had the VPN connected and connection was indeed successfully established. \u00a0However, I wasn&#8217;t able to access the shared resources on the network &#8211; unable to access a network drive as an example. \u00a0If you are experiencing the same issue then please keep reading.<!--more-->The Mac comes with L2TP VPN client by default which can be configured on the &#8220;Network&#8221; pane (System Preferences -&gt; Network). \u00a0Although, OpenVPN is the best in-terms of perfomance but L2TP is also equally good when it comes to security. \u00a0The good part about L2TP is that the client comes pre-installed\/supported on a Mac.<\/p>\n<div id=\"attachment_471\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-471\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM-1024x848.png\" alt=\"\" width=\"800\" height=\"663\" class=\"size-large wp-image-471\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM-1024x848.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM-300x249.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM-768x636.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM-1536x1273.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.44.35-PM.png 1598w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-471\" class=\"wp-caption-text\">Network Pan on a Mac<\/p><\/div>\n<p>Once you have it configured then you can click on the VPN connection name (you gave) on the left list to select it. \u00a0Please make sure to check &#8220;Show VPN status in menu bar&#8221; option as this will display a little icon in the menu bar which could be handy to easily invoke it. \u00a0Please note that if you have it configured properly then the &#8220;Server Address&#8221; and the &#8220;Account Name&#8221; fields would not be empty. \u00a0I deliberately deleted those entries from the pic for confidentiality reasons.<\/p>\n<div id=\"attachment_472\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-472\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.47.41-PM-1024x878.png\" alt=\"\" width=\"800\" height=\"686\" class=\"size-large wp-image-472\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.47.41-PM-1024x878.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.47.41-PM-300x257.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.47.41-PM-768x658.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.47.41-PM.png 1330w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-472\" class=\"wp-caption-text\">L2TP VPN connection<\/p><\/div>\n<p>Now, you should be seeing a rectangular shaped icon in the menu bar. \u00a0And clicking on it would display the VPN network name which you have just finished configuring. \u00a0Select the &#8220;Connect VPN Name&#8221; entry to invoke the connection. \u00a0This would present another window where you are asked to input the username and password field to establish the connection.<\/p>\n<div id=\"attachment_473\" style=\"width: 538px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-473\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.53.18-PM.png\" alt=\"\" width=\"528\" height=\"404\" class=\"size-full wp-image-473\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.53.18-PM.png 528w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.53.18-PM-300x230.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><p id=\"caption-attachment-473\" class=\"wp-caption-text\">VPN icon on the Menu Bar<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_467\" style=\"width: 932px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-467\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.17.50-PM.png\" alt=\"\" width=\"922\" height=\"474\" class=\"size-full wp-image-467\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.17.50-PM.png 922w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.17.50-PM-300x154.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.17.50-PM-768x395.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><p id=\"caption-attachment-467\" class=\"wp-caption-text\">L2TP VPN Credentials Window<\/p><\/div>\n<p>After having entered the valid credentials and clicking on the &#8220;OK&#8221; button would result in establishing the connection. \u00a0The status on the menu bar would now show a timer displaying the time elapsed after establishing the connection. \u00a0You can also see that clicking that icon now shows an option &#8220;Disconnect VPN Name&#8221; which can be used to disconnect the VPN. \u00a0If for any reason you are not able to come this far or not able to establish the connection then repeat the whole process and see if the credentials provided were invalid or VPN client wasn&#8217;t configured properly.<\/p>\n<div id=\"attachment_474\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-474\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.59.07-PM.png\" alt=\"\" width=\"542\" height=\"402\" class=\"size-full wp-image-474\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.59.07-PM.png 542w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-02-at-11.59.07-PM-300x223.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><p id=\"caption-attachment-474\" class=\"wp-caption-text\">VPN Connected Status in the Menu bar<\/p><\/div>\n<p>At this point, we have successfully established the VPN connection. \u00a0If you have access to the VPN server to which the client is connected to, \u00a0you could check on the server to check the connection\/client list. \u00a0And indeed it should list the IP address of your MAC as one of the active connections. \u00a0At this stage, if you have configured your shared resources (like the network share or a drive ..etc) on the server side to be accessible via SMB for example then you should now be able to access that drive post establishing a successful VPN connection from outside your local home network.<\/p>\n<p>If you unable to, then there could many reasons for this access issue. \u00a0Assuming that you have the VPN configured properly and the network drive or the shared resource is setup properly with proper access privileges, the most likely cause of the issue is that the service order is NOT being set properly on the &#8220;Network Pane&#8221;. \u00a0In order to verify that bring back the Network pane again (as shown below). \u00a0By comparing the status now with the picture before VPN connection was established, you can see that the VPN network is now at the top of the list on the left in the window. \u00a0This is very critical for it to successfully establish the right service order which&#8217;s needed to enable the access to the network shared resources. \u00a0You could see that in my case it already tops the list and I don&#8217;t have issues with accessing the network shared resources right now.<\/p>\n<div id=\"attachment_475\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-475\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM-1024x683.png\" alt=\"\" width=\"800\" height=\"534\" class=\"size-large wp-image-475\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM-1024x683.png 1024w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM-300x200.png 300w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM-768x512.png 768w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM-1536x1025.png 1536w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.10.42-AM.png 2000w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><p id=\"caption-attachment-475\" class=\"wp-caption-text\">Network Pane with VPN connected<\/p><\/div>\n<p>If you are not seeing it topping your list then you need to do the following to fix the order issue:<\/p>\n<ul>\n<li>Click on the small circle next to the &#8220;-&#8221; (minus) sign at bottom left of the Network window as showing in the picture below\n<div id=\"attachment_476\" style=\"width: 473px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-476\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.17.29-AM-463x1024.png\" alt=\"\" width=\"463\" height=\"1024\" class=\"size-large wp-image-476\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.17.29-AM-463x1024.png 463w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.17.29-AM-136x300.png 136w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.17.29-AM.png 654w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><p id=\"caption-attachment-476\" class=\"wp-caption-text\">Drop down menu at the bottom left<\/p><\/div>\n<p>&nbsp;<\/li>\n<li>Select the option &#8220;Set Service Order&#8230;&#8221; and this will bring you a window where all the entries or the network names would be listed.\n<p><div id=\"attachment_477\" style=\"width: 722px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-477\" src=\"https:\/\/blog.al-zakirah202.familyds.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.19.40-AM.png\" alt=\"\" width=\"712\" height=\"512\" class=\"size-full wp-image-477\" srcset=\"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.19.40-AM.png 712w, https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-03-at-12.19.40-AM-300x216.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><p id=\"caption-attachment-477\" class=\"wp-caption-text\">Set Service Order window<\/p><\/div><\/li>\n<li>Now you can drag and re-arrange \u00a0to make sure that the VPN network name is moved to the top of the list and click &#8220;OK&#8221;<\/li>\n<li>Make sure to hit the &#8220;Apply&#8221; button on the &#8220;Network&#8221; window to apply and save the changes<\/li>\n<\/ul>\n<p>That&#8217;s it, it should resolve the issues and you should now be able to access the shared resources using the VPN connection.<\/p>\n<p>Please feel free to give \ud83d\udc4d if this resolved your issue. \u00a0And don&#8217;t hesitate to <a href=\"https:\/\/blog.al-zakirah202.familyds.com\/index.php\/contact-us\/\">Contact Us<\/a> if you have any questions or need help.<\/p>\n<div id=\"emojics-root\"><\/div><div class=\"remoji_bar\"><div class=\"remoji_add_container\" data-remoji-id=\"465\" data-remoji-type=\"post\"><div class=\"remoji_add_icon\"><\/div><\/div><div class=\"remoji_error_bar\" data-remoji-id=\"465\" data-remoji-type=\"post\" style=\"display: none;\">Error happened.<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Lately, I was experiencing an issue on my new M1 MacBook Pro where I had the VPN connected and connection was indeed successfully established. \u00a0However, I wasn&#8217;t able to access the shared resources on the network &#8211; unable to access a network drive as an example. \u00a0If you are experiencing the same issue then please [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,27],"tags":[29],"class_list":["post-465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-l2tp","category-vpn","tag-vpn"],"_links":{"self":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":4,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/posts\/465\/revisions\/576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/media\/467"}],"wp:attachment":[{"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.al-zakirah202.familyds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}