Hamachi on FreeBSD
From HostThyself
This is how I got Hamachi running on my FreeBSD box.
Contents |
[edit] Pre-Install
- Check system for linux support and if_tap
kldstat Id Refs Address Size Name 3 1 0xc3654000 16000 linux.ko 5 1 0xc5d73000 4000 if_tap.ko
kldstat should show both linux.ko and if_tap.ko
- To install linux support:
pkg_add -r linux-libgcc cd /usr/ports/emulators/linux_base-fc4 make install clean
- Add the following line to /etc/fstab:
linproc /compat/linux/proc linprocfs rw 0 0
- Edit /etc/rc.conf, add this line
linux_enable="YES"
- To load if_tap:
kldload if_tap
[edit] Installing Hamachi
- Get Hamachi files. (Newer version are not tested. See forum for details.)
fetch http://files.hamachi.cc/linux/hamachi-0.9.9.9-15-lnx.tar.gz fetch http://files.hamachi.cc/osx/hamachi-0.9.9.9-15-osx.tar.gz
- Untar files
tar xzf hamachi-0.9.9.9-15-lnx.tar.gz tar xzf hamachi-0.9.9.9-15-osx.tar.gz
- tuncfg
cd hamachi-0.9.9.9-15-osx/tuncfg rm tuncfg make ./tuncfg
- Make install
cd ../../hamachi-0.9.9.9-15-lnx make install cp ../hamachi-0.9.9.9-15-osx/tuncfg/tuncfg /sbin/tuncfg
- Run Hamachi
hamachi-init hamachi start hamachi login hamachi join network hamachi go-online network
[edit] Startup
- Create a strtup script. (See Startup Program on Boot in FreeBSD)
/sbin/kldload if_tap /sbin/tuncfg /usr/bin/hamachi start /usr/bin/hamachi go-online network