Monday, September 29, 2014

Transpararent Proxy squid with Juniper SRX

it's working for me

 routing-instances {
squid-vr {
        instance-type forwarding;
        routing-options {
            static {
                route 0.0.0.0/0 next-hop 10.1.2.100;
            }
        }
    }
}
 routing-options {
    interface-routes {
        rib-group inet squid-vr;
    }
    static {
        route 0.0.0.0/0 next-hop 203.161.25.1;

}
    rib-groups {
        squid-vr {
            import-rib [ inet.0 squid-vr.inet.0 ];
        }



Apply to interface


filter tes {
            term squid {
                from {
                    source-address {
                        192.168.103.64/26;
                        192.168.103.128/26;
                        192.168.103.192/26;
                        192.168.104.0/24;
                        192.168.102.0/24;
                        192.168.101.0/24;
                    }
                    destination-address {
                        0.0.0.0/0;
                        192.168.0.0/16 except;
                        10.1.0.0/16 except;
                    }
                    destination-port [ http https ];
                }
                then {
                    routing-instance squid-vr;
                }
            }
            term bypass {
                then accept;
            }
        }
    }

Sunday, September 28, 2014

Change LDAP host Zimbra

su - zimbra
zmlocalconfig -e ldap_url=ldap://localhost:389
zmlocalconfig -e ldap_master_url=ldap://localhost:389
zmlocalconfig -e ldap_port=389
zmlocalconfig -e ldap_host=localhost
 
change password admin 
 /usr/local/bin/zimbra-conf DOMAIN ADMIN_PASS

Enable login POP3 account Zimbra

 Enable login pop3 account zimbra in order to login with pop3 account like outlook, etcetera

#su zimbra
#zmprov mcf zimbraPop3CleartextLoginEnabled TRUE

Zimbra 8.5 bug ( network service error has occurred)


 Error by Login error

Just execute the following commands:

?

$ zmprov ms `zmhostname` zimbraInvalidLoginFilterMaxFailedLogin 0
 
$ zmprov mcf zimbraInvalidLoginFilterMaxFailedLogin 0
 
$ zmmailboxdctl restart
 
 
 OR
 Error by certificate: recreate certificate
?

/opt/zimbra/bin/zmcertmgr viewdeployedcrt
 recommend regenerate:
?

/opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr createcrt -new -days 365
 /opt/zimbra/bin/zmcertmgr deploycrt self
/opt/zimbra/bin/zmcertmgr deployca
 
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
zmcontrol restart