![]() The config file should look like this.Ĭlient dev tun proto udp remote 1194 resolv-retry infinite nobind persist-key persist-tun ns-cert-type server ca ca.crt cert client1.crt key client1.key comp-lzo verb 3Ĭopy the four files required by OS X and Tunnelblick to another computer: OpenVPN Client Configuration (OS X) Setup A Client Config Fileįollow the steps above to make a new config file, but stop at the step where the certificate/keys are commented out. Once it is on the device, just touch it and choose to open it using OpenVPN. Any of the file sharing/syncing apps should work, or you can simply email the file to yourself. In order to setup the OpenVPN connection on the iOS device, the configuration file needs to be accessible from iOS. Mv nf client1.ovpn Email the Config File to Yourself, or Use Dropbox/Google Drive, etc. In order to use OpenVPN, the app needs to be downloaded to an iOS device. BEGIN CERTIFICATE- # insert base64 blob from ca.crt -END CERTIFICATE-BEGIN CERTIFICATE- # insert base64 blob from client1.crt -END CERTIFICATE-BEGIN PRIVATE KEY- # insert base64 blob from client1.key -END PRIVATE KEY- The Client File Should Look Similar to This When The Changes Are CompleteĬlient dev tun proto udp remote 1194 resolv-retry infinite nobind persist-key persist-tun ns-cert-type server # ca ca.crt # cert client1.crt # key client1.key comp-lzo verb 3 -BEGIN CERTIFICATE- KJhdiuhJOkjNJKNNoiNIENJNSDFWEnSDNFSNDFonkjNSDfonSDOFnOnfOoiNDnSKLNfSNDflkNSDfgSDfnSLDKfnSndfsdnfLSNDflNFLSNFSNDkjsDNfNSFNSDFkjnsDFnSPVJOSNFoNoSNoNonLDNlOIOIJoiOJOIJfknkjnelspivnounewuoinybvytonirngonwoinNFOINWFOWENFNWEOFNWEIFNDOINSKJDCNOIWENIOFGSDFISBFJSHDBFLSDBFIUWBFISBFHBFKJSDBFKSDBFKSDBFKJNFKJSDBFKJSDBNFKJSDNFKSNVOINIDNFOIFIJWNFKJSDBFGKJSDBFKSJDBFKJSDKSDJBFKJSBFKJSDBFKJSBDFKJSBDFKJSDNONVO= -END CERTIFICATE-BEGIN CERTIFICATE- KJhdiuhJOkjNJKNNoiNIENJNSDFWEnSDNFSNDFonkjNSDfonSDOFnOnfOoiNDnSKLNfSNDflkNSDfgSDfnSLDKfnSndfsdnfLSNDflNFLSNFSNDkjsDNfNSFNSDFkjnsDFnSPVJOSNFoNoSNoNonLDNlOIOIJoiOJOIJfknkjnelspivnounewuoinybvytonirngonwoinNFOINWFOWENFNWEOFNWEIFNDOINSKJDCNOIWENIOFGSDFISBFJSHDBFLSDBFIUWBFISBFHBFKJSDBFKSDBFKSDBFKJNFKJSDBFKJSDBNFKJSDNFKSNVOINIDNFOIFIJWNFKJSDBFGKJSDBFKSJDBFKJSDKSDJBFKJSBFKJSDBFKJSBDFKJSBDFKJSDNONVO= -END CERTIFICATE-BEGIN PRIVATE KEY- KJhdiuhJOkjNJKNNoiNIENJNSDFWEnSDNFSNDFonkjNSDfonSDOFnOnfOoiNDnSKLNfSNDflkNSDfgSDfnSLDKfnSndfsdnfLSNDflNFLSNFSNDkjsDNfNSFNSDFkjnsDFnSPVJOSNFoNoSNoNonLDNlOIOIJoiOJOIJfknkjnelspivnounewuoinybvytonirngonwoinNFOINWFOWENFNWEOFNWEIFNDOINSKJDCNOIWENIOFGSDFISBFJSHDBFLSDBFIUWBFISBFHBFKJSDBFKSDBFKSDBFKJNFKJSDBFKJSDBNFKJSDNFKSNVOINIDNFOIFIJWNFKJSDBFGKJSDBFKSJDBFKJSDKSDJBFKJSBFKJSDBFKJSBDFKJSBDFKJSDNONVO= -END PRIVATE KEY- Install the Config File to an iOS Device Download the OpenVPN app ![]() Copy and paste each in the appropriate area: # ca ca.crt # cert client.crt # key client.keyįinally, we are going to use inline references to the keys and certificates as opposed to packaging them up together. The second change is to comment out the lines referring to the location of the keys After the change, your file should like this: ![]() It needs to be changed to the RPi’s IP address or domain name if using a Dynamic DNS service. The first is the line that readsremote my-server-1 1194. There are only three changes (in bold) to make in this file. You can use the following commands to view the settings without all of the comments:Ĭat nf | grep -v "#" | tr -s '\n' cat nf | grep -v "#" | grep -v " " | tr -s '\n' Make a copy of the example config file and then edit that.Ĭd /etc/openvpn sudo cp /usr/share/doc/openvpn/examples/sample-config-files/nf /etc/openvpn sudo cp /etc/openvpn/nf /etc/openvpn/nf Edit the Client Config File OpenVPN Client Configuration (iOS) Setup A Client Config File Copy A Sample Config File This how-to sets is a direct continuation of my OpenVPN server how-to.
0 Comments
Leave a Reply. |