Config iptables and install java from package.