Hamachi with a firewall

ok, this is going to be brief cause my battery is about to die.

To get hamachi working through an iptables firewall in linux using firestarter:

add the following to /etc/firestarter/user-pre

$IPT -A OUTPUT -o ham0 -j ACCEPT

and the following to /etc/firestarter/user-post

$IPT -A INPUT -i ham0 -j INBOUND

change ham0 to the device name designated by Hamachi (should be ham0)

then manually add the following entries into the firestarter gui:

port 137 for 5.0.0.0/8

port 138 for 5.0.0.0/8

port 139 for 5.0.0.0/8

port 445 for 5.0.0.0/8

port 20 for 5.0.0.0/8

port 21 for 5.0.0.0/8

5.0.0.0/8 means any ip address under the 5.x.x.x octagle