update client script

use the syslog standard format to log
use more reliable way of removing the iptables rules