Difference between revisions of "VPNMacTunnelBlick"

From Amahi Wiki
Jump to: navigation, search
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Mac VPN Client - Tunnelblick ==
 
== Mac VPN Client - Tunnelblick ==
  
Tunnelblick is an open source client for Mac OSX.
+
[http://www.tunnelblick.net/ Tunnelblick] is an open source client for Mac OS X.
  
Visit the [http://www.tunnelblick.net/ Tunnelblick] download page for all details.
+
''NOTE: Tunnelblick may not work if you have the Cisco VPN client installed at the same time!''
  
'''NOTE: Tunnelblick will not work if you have the Cisco VPN client installed at the same time!'''
+
= Installation Methods =
 +
== Semi-automatic Method ==
 +
If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.
  
* Download and install the latest version of [http://code.google.com/p/tunnelblick/downloads/list Tunnelblick] for Mac OS X (''NEW as of Sept. 23 09 3.0b18'').
+
* We have a script to help in the installation:
* There are some .ctr/.key files needed (make sure you follow the links to these in this wiki properly) Right click and save as to save these to your computer:
+
        curl -so install-amahi-vpn <nowiki>http://dl.amahi.org/vpn/tunnelblick-beta.sh</nowiki>
** [http://wiki.amahi.org/images/3/3a/AmahiHDAClient.crt AmahiHDAClient.crt]
+
        chmod 755 install-amahi-vpn
** [http://wiki.amahi.org/images/1/16/AmahiHDAClient.key AmahiHDAClient.key]
+
        ./install-amahi-vpn
** [http://wiki.amahi.org/images/9/96/Ca-cert.crt Ca-cert.crt]
+
* The above should open a text editor with the conf file
* Download the .ctr/.key files and save them in the /Users/'''username'''/Library/openvpn folder, where '''username''' is the home directory of the current user.
+
* Replace YourNicknameHere in the first line for your nickname and save it
 +
* This will create a profile called *Home* -- use that to connect back to your HDA
 +
* Start the VPN!
 +
 
 +
== Manual Method ==
 +
 
 +
* Detailed instructions
 +
* The next step is to download the certificates.  They can be found on the [[OpenVPN Client Certificates]] download page.
 +
* Download the .ctr/.key files and save them in the /Users/'''username'''/Library/Application Support/Tunnelblick/Configurations/ folder, where '''username''' is the home directory of the current user.
 
* Go to the configuration for Tunnelblick and edit the config file.
 
* Go to the configuration for Tunnelblick and edit the config file.
 
* Click on the Tunnelblick icon in the upper right corner of the display, then click '''''Details...'''''<br />[[Image:tunnelblick-pulldown.png]]
 
* Click on the Tunnelblick icon in the upper right corner of the display, then click '''''Details...'''''<br />[[Image:tunnelblick-pulldown.png]]
Line 27: Line 37:
 
       persist-key
 
       persist-key
 
       persist-tun
 
       persist-tun
       ca Ca-cert.crt
+
       ca ca.crt
       cert AmahiHDAClient.crt
+
       cert Amahi-Client-OpenVPN.crt
       key AmahiHDAClient.key
+
       key Amahi-Client-OpenVPN.key
 
       comp-lzo
 
       comp-lzo
 
       verb 3
 
       verb 3
Line 47: Line 57:
 
* Once connected, in Finder, go to "Go" > "Connect to Server".  You'll be prompted to type in your HDA address (smb://hda)
 
* Once connected, in Finder, go to "Go" > "Connect to Server".  You'll be prompted to type in your HDA address (smb://hda)
 
* There have been cases in which the hda name did not work due to DNS issues.  If this is the case, you can connect via ip address of your HDA (smb://192.168.X.X)
 
* There have been cases in which the hda name did not work due to DNS issues.  If this is the case, you can connect via ip address of your HDA (smb://192.168.X.X)
 +
 +
== Troubleshooting ==
 +
If you see this message:
 +
<pre>
 +
Warning:
 +
This computer's apparent public IP address was not different after
 +
connecting to amahi-hda. It is still 111.222.333.44.
 +
</pre>
 +
This may mean that your VPN is not configured correctly.  To correct, change the advanced setting to 'route all traffic through vpn'
 +
<br />
 
[[Category: VPN]]
 
[[Category: VPN]]

Latest revision as of 22:55, 18 December 2017

Mac VPN Client - Tunnelblick

Tunnelblick is an open source client for Mac OS X.

NOTE: Tunnelblick may not work if you have the Cisco VPN client installed at the same time!

Installation Methods

Semi-automatic Method

If the above Amahi VPN Client Configuration package fails to install, you should try the steps below.

  • We have a script to help in the installation:
       curl -so install-amahi-vpn http://dl.amahi.org/vpn/tunnelblick-beta.sh
       chmod 755 install-amahi-vpn
       ./install-amahi-vpn
  • The above should open a text editor with the conf file
  • Replace YourNicknameHere in the first line for your nickname and save it
  • This will create a profile called *Home* -- use that to connect back to your HDA
  • Start the VPN!

Manual Method

  • Detailed instructions
  • The next step is to download the certificates. They can be found on the OpenVPN Client Certificates download page.
  • Download the .ctr/.key files and save them in the /Users/username/Library/Application Support/Tunnelblick/Configurations/ folder, where username is the home directory of the current user.
  • Go to the configuration for Tunnelblick and edit the config file.
  • Click on the Tunnelblick icon in the upper right corner of the display, then click Details...
    Tunnelblick-pulldown.png
  • "OpenVPN Log Output" window should appear, click on Edit Configuration. Make sure the Set Nameserver (Experimental) option is checked.
    Tunnelblick-editconfig.png
  • Delete the default sample configuration
    Openvpn conf1.png
  • Copy and paste the configuration below into the OpenVPN.conf file, replacing XYZ for your HDA's nickname:
      remote XYZ.yourhda.com 1194
      client
      dev tun
      proto udp
      resolv-retry infinite
      nobind
      persist-key
      persist-tun
      ca ca.crt
      cert Amahi-Client-OpenVPN.crt
      key Amahi-Client-OpenVPN.key
      comp-lzo
      verb 3
      auth-user-pass


  • Any time you want to connect from outside of your home network and into your home network, simply click on Connect
  • Don't forget to click on the DNS option.
  • Input your username and password
  • It is possible to use keyrings. Will link here the details when available.

Note:

  • The procedure above has been tested with an Intel-based Mac.

Acessing Shares:

  • Once connected, in Finder, go to "Go" > "Connect to Server". You'll be prompted to type in your HDA address (smb://hda)
  • There have been cases in which the hda name did not work due to DNS issues. If this is the case, you can connect via ip address of your HDA (smb://192.168.X.X)

Troubleshooting

If you see this message:

Warning:
This computer's apparent public IP address was not different after
connecting to amahi-hda. It is still 111.222.333.44.

This may mean that your VPN is not configured correctly. To correct, change the advanced setting to 'route all traffic through vpn'