Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use iTunes 9's Home Sharing over the Internet' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use iTunes 9's Home Sharing over the Internet
Authored by: echamings on Oct 15, '09 03:09:44AM
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:

port 1194
proto udp
max-clients 10

dev tap

server 192.168.2.0 255.255.255.0

secret key.txt

keepalive 10 120

comp-lzo

user nobody
group nobody

persist-key
persist-tun

I can't get any further. Does anyone have any ideas?

[ Reply to This | # ]

Use iTunes 9's Home Sharing over the Internet
Authored by: quangdiggity on Oct 26, '09 06:42:06AM
I forgot about that quirk with KEYS_DIR when creating keys for Open VPN according to the howto. The HOWTO says to execute

. ./vars
./clean-all
./build-ca


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
sudo -E ./clean-all
sudo -E ./build-ca


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
openvpn2 --config server.conf


[ Reply to This | # ]