2008年2月19日 星期二

Install centrally-managed VPN system, hamachi on Ubuntu

1. load IP tunneling module

sudo modprobe tun

also, you can add tun to the list of modules which are loaded while booting

sudo vi /etc/modules

2. make sure if a valid tunnel has been created

ls /dev/net/tun

if you get a "No Such File or Directory" error, you need to create a new node

sudo mkdir /dev/net
sudo mknod /dev/net/tun c 10 200

4. download hamachi from https://secure.logmein.com/ then extract it

tar -zxvf hamachi-0.9.9.9-20-lnx.tar.gz

5. install hamachi and tuncfg must always be ran to get the interface up and working while hamachi is running

sudo make install
sudo tuncfg

6. set socket permissions

sudo chmod 766 /var/run/tuncfg.sock

7. by running hamachi-init, it will make a configuration directory under your home directory by default.

hamachi-init

8. the hamachi binary is compressed with upx. try unpacking it if nothing happens when you start hamachi

sudo apt-get install upx-ucl-beta
sudo upx -d hamachi

8. For easier use, download and install the GUI for hamachi linux from http://hamachi-gui.sourceforge.net/

沒有留言: