Ok I wanted to do this eventually but now Iâ€™ve finally done it. I have constructed something a little complex but it works surprisingly well.
Let me draw a picture so itâ€™ll be a little easier to follow:
All of the machines in clouds are virtualâ€¦
Ok Iâ€™m going to assume you can install & configure OpenVPN on your own. I did a really simple install on Proxmox VE, just be sure to use the e1000 network adapters. All the others gave me tones of errors with any sizable traffic. Also I should point out that Iâ€™m using OpenBSD 4.3 which is the latest as of today.
server-bridge 192.168.6.33 255.255.255.224 192.168.6.50 192.168.6.62
push “route 192.168.6.0 255.255.255.0”
push “dhcp-option DNS 192.168.6.34”
keepalive 10 120
Again I just followed the example from the OpenVPN site to set this up. What makes this different though is the fact that Iâ€™m using this in a bridge mode. As you can see I have told OpenVPN that it is to use the tun0 interface as a â€˜tapâ€™ driver.
My hostname.tun0 is this:
Likewise the bridgename.bridge0 is:
And finally for this example my bridgename.em1 is:
inet 192.168.6.33 255.255.255.224 NONE
So using this setup I have a â€˜privateâ€™ 192.168.6.32/27 network in which Iâ€™ve got a few virtual machines running and space for my laptop to VPN into. Now one of the virtual servers on my Proxmox server is Windows NT 4.0 Terminal Serverâ€¦ Yeah I know I got it cheap on ebay, and I kind of like it. Anyways Iâ€™m running Qemu on it, which is running Netware 3.12. I installed the libpcap then I had to find out what my Ethernet devices are called. I used wireshark (it was ethereal) and itâ€™s a cool program to have around. The last version to run under Windows NT 4.0 was 0.99.4 so thatâ€™s the one I used. Once I have done this I found my device and was able to setup a string for Qemu (which was \Device\NPF_RTL80291)
Here is what Iâ€™m using:
Qemu â€“had netware.disk â€“m 16 â€“M isapc â€“L pc-bios â€“net nic â€“net pcap,devicename=â€\Device\NPF_RTL80291â€
This sets up an ISA computer with 16 megaybtes of ram and a single ISA nic that will utilize libpcap to send out frames on the rtl80291 thatâ€™s being emulated to my NT terminal server by proxmox.
On the â€˜clientâ€™ side of things, Iâ€™m running the 64 bit version of Vista. So Iâ€™ve installed the OpenVPN that not only has 64 bit device drivers, but has a nice little GUI to connect & disconnect from the networks. Here is the OpenVPN config that is on my laptop.
remote 192.168.1.75 1194
Ok, so far so good. Now I do have Virtual PC 2007 on my laptop, and I have made sure that the â€œVirtual Machine Network Servicesâ€ were bound to the â€œTAP-Win32 Adapter V9â€ interface.
Then you should be able to â€˜bindâ€™ to the server & login!
The â€˜coolâ€™ thing about this setup is that it will work over things like wifi, and easily allow you to add clients near & far. Oh and the best part for the wifi crowd is that it will use REAL encryption since WEP/WPA have all been shown to be useless. Oh yes, and it should allow you to host your DOOM, Quake 1, Rise of the Triad, Warcraft II, and Descent games…. Along with people playing at home! Using this you too can build your own IPX/Internet network!
I do hope this clears some of the uses & versility of Virtual servers, Qemu & Virtual Networking.