Archive for December, 2008

How to run OpenVPN server on Leopard

I’ve been running OpenVPN servers for a long time on many Linux servers, but I’ve never tried running a server on Mac OS X. Usually I have an old Linux machine just sort of lying around on a network, and I use that as the VPN server.

On a new network I set up, I have only Macs available. So I either had to set up a Linux OS on an old computer, or try OpenVPN on Mac. I thought I’d give Mac a try first. It works.

Notes along the way:

1. Use MacPorts to get openvpn installed on the server machine.

2. Enable IP forwarding on Leopard:

sysctl -w net.inet.ip.forwarding=1

3. Put static routes on your router on the server network so that packets for the virtual network get routed back to the OpenVPN server, so they can be put into the right tunnel.

4. Also on the router on the server side, forward TCP port 1194 to the OpenVPN server machine.

5. Create the CA (build-ca), DH group (build-dh), Server cert (build-key-server) and various client certs (build-key) in the easy-rsa script hierarchy

6. roll it all up in a server.conf:


port 1194
proto tcp
dev tun
ca /opt/local/openvpn/easy-rsa/keys/ca.crt
cert /opt/local/openvpn/easy-rsa/keys/stony.crt
key /opt/local/openvpn/easy-rsa/keys/stony.key
dh /opt/local/openvpn/easy-rsa/keys/dh1024.pem
server 10.91.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.90.0.0 255.255.255.0"
push "dhcp-option DNS 10.90.0.1"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3

7. Start the server

cd /opt/local/openvpn; openvpn2 --config server.conf

8. create a client.conf, and don’t forget the ca.crt, client.crt and client.key


client
dev tun
proto tcp
remote office.yourcompanyname.com 1194
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
ca stony-ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3

9. Don’t forget the TUN/TAP drivers on both client and server machines!

Reference: tinyapps.org

Canon 5D Mark II notes

This is the camera I want to get, but it’s hard to find. I saw it on Amazon for a 40% markup, but I’m not that rich, stupid or desperate.

Official page at Canon

Movie mode notes from canon

dp review forum

Amazon link

Reviews: popphoto

Black dot issue info (thanks Russ for the link).

10 iPhone tips from tap tap tap

http://www.taptaptap.com/blog/10-useful-iphone-tips-and-tricks/

I was surprised at how many of these I didn’t know about.

WordPress 2.7 upgrade

Wow, I wasn’t expecting this… they have a radically different dashboard in 2.7. I like it!

SimCity for iPhone.

Must buy.

finder open with management software

Note to self: http://www.manytricks.com/openwithmanager/

Might be useful.