Send one copy to the computer you would like to connect to your server and keep the other copy besides your config file on your server. The static key file is formated in ASCII and should be kept very private. We can construct one by putting in the following command: The rest are some tweaking commands which should be pretty self explanatory. This tells OpenVPN to start a new VPN on the “tun” device with the IP of 10.8.0.1 using the key named “static.key”. My config file on the server side looks as simple as following (/etc/openvpn/nf): We’re gonna work with a pre shared static key here because it is easier to set up and provides enough security for home use. The other possibility is of course to install it from a package your distribution provides you, in my case this is handled by apt (aptitude install openvpn) which has the advantage of setting up init scripts so the VPN is startet at system boot and taking care that the whole environment on the server is suitable. The following is a quick step-by-step how-to on setting up such a setup □ So I set up Samba and let it listen only on the VPN interface. It should be fairly usable, providet I’ve got sufficient net connection on my end, since my server has a 100MBit internet line. After I managed to set it up on my server I thought why not share my home directory via the VPN tunnel and mount it on my Desktop. A few month ago I started to look at OpenVPN which has a very good GUI for the Mac called “ Tunnelblick“.
0 Comments
Leave a Reply. |