homemade hamachi or similar?

Hi all,

it's possible to have a server (we have a housed one) that does authentication, and set a vpn between clients?

some like hamachi or similar services, but running on our box.

we can install on our server any o.s. (we run virtualized via VirtualIron)

Any suggestion appreciated