{
    # geneweb port access only from localhost
    my $gwd_status = ${'geneweb'}{'status'} || "disabled";
    my $gwd_port = ${'geneweb'}{'TcpPort'} || '';
    if ($gwd_status eq 'enabled') {
        $OUT .= "    # Geneweb enabled\n";
        $OUT .= "    /sbin/iptables -I INPUT -p tcp ! -s 127.0.0.1 --dport $gwd_port --jump DROP \n";
    } else {
        $OUT .= "    # Geneweb disabled\n";
    }

    # gwsetup port access only from localhost
    my $gws_status = ${'gwsetup'}{'status'} || "disabled";
    my $gws_port = ${'gwsetup'}{'TcpPort'} || '';
    if ($gws_status eq 'enabled') {
        $OUT .= "    # gwsetup enabled\n";
        $OUT .= "    /sbin/iptables -I INPUT -p tcp ! -s 127.0.0.1 --dport $gws_port --jump DROP \n";
    } else {
        $OUT .= "    # gwsetup disabled\n";
    }
}

