|
|
Use iTunes 9's Home Sharing over the Internet
Trying to follow the instructions here, setting up the keys was a major hassle, so much so I had to ditch that and run with a static key, which seams simpler for a 1-1 VPN solution.
It was constantly telling me that I had to define KEY_DIR, no amount of defining the variable in vars or putting in the path would get it any further. No idea what was causing that.
I have a question about getting openvpn to run however. So I am at the stage where I have openvpn installed via macports, a static key, tap/tun installed, and an edited server.conf file. I am attempting to run openvpn2 in this manner:
openvpn2 --cd /etc/openvpn --config /etc/openvpn/server.conf
and I am presented with this:
Options warning: Bad backslash ('') usage in /etc/openvpn/server.conf:1: remember that backslashes are treated as shell-escapes and if you need to pass backslash characters as part of a Windows filename, you should use double backslashes such as "c:\openvpn\static.key" Use --help for more information.Now, there are ZERO slashes in my config file here:
I can't get any further. Does anyone have any ideas?
Use iTunes 9's Home Sharing over the Internet
I forgot about that quirk with KEYS_DIR when creating keys for Open VPN according to the howto. The HOWTO says to execute
. ./vars
The problem is that your etc/openvpn directory probably is only writable by root, so you will try to run the above with sudo. However, the vars script sets the KEYS_DIR environment variable that clean-all and build-ca depend on, so you will need to make sure that it gets passed to them. This is what I did:
. ./vars
The -E option tells sudo to preserve your environment. Otherwise, clean-all and build-ca will be run in a fresh environment that does not have the KEYS_DIR variable set. As for the backslash problem. I don’t know. Have you tried running openvpn in the foreground with your current directory set to /etc/openvpn? i.e.
cd /etc/openvpn
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|