added test for file() ensure => directory, use mkdir() function
check if iptables rule for open_close_port already exists