Created
April 15, 2020 12:41
-
-
Save fexx/d991acae8559c55dba6fefc4a95bbbf4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function FindProxyForURL(url, host) { | |
| url = url.toLowerCase(); | |
| host = host.toLowerCase(); | |
| if (isPlainHostName(host)) { | |
| return "DIRECT"; | |
| } | |
| if ((host == "hml.mol.mapfre.com.br") || | |
| (host == "ftp.mapfre.com.br") || | |
| (host == "gor.mapfre.com.br") || | |
| (host == "sts.bbmapfre.com.br") || | |
| (host == "hml.vistorias.bbseguros.com.br") || | |
| (host == "seguridade-ws-desenv.bb.com.br") || | |
| (host == "seguridade-ws-hm.bb.com.br") || | |
| (host == "aapjteste.hm.bb.com.br") || | |
| (host == "live.eventials.com") || | |
| (host == "awslive.eventials.com") || | |
| (host == "157.240.222.51") || | |
| (host == "saas003.nordica.net.br") || | |
| (host == "dev.brasilseg.bwiseri.com") || | |
| (host == "usd.sicredi.net") || | |
| (host == "brasilseg.bwiseri.com") || | |
| (host == "qa.brasilseg.bwiseri.com") || | |
| (host == "dev.brasilseg.bwiseri.com") || | |
| (host == "auto.sulamerica.br")) { | |
| return "DIRECT"; | |
| } | |
| if ((host == "i.mkt.mapfre.com.br") || | |
| (host == "l.mkt.mapfre.com.br") || | |
| (host == "x.mkt.mapfre.com.br") || | |
| (host == "s.mkt.mapfre.com.br") || | |
| (host == "w.mkt.mapfre.com.br") || | |
| (host == "x.mkt.bbmapfre.com.br") || | |
| (host == "x.mkt.bbseguros.com.br") || | |
| (host == "rural.aliancadobrasil.com.br") || | |
| (host == "autodiscover.bbmapfre.com.br")) { | |
| return "PROXY proxywcg.bbmapfre.corp:8080"; | |
| } | |
| var resolved_ip = dnsResolve(host); | |
| if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") || | |
| isInNet(resolved_ip, "172.16.0.0", "255.240.0.0") || | |
| isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") || | |
| isInNet(resolved_ip, "127.0.0.0", "255.255.255.0")) { | |
| return "DIRECT"; | |
| } | |
| if (dnsDomainIs(host, ".net.mapfre.com.br") || | |
| (host == "net.mapfre.com.br") || | |
| dnsDomainIs(host, ".bbmapfre.com.br") || | |
| (host == "bbmapfre.com.br") || | |
| dnsDomainIs(host, ".bbmapfre.corp") || | |
| (host == "bbmapfre.corp") || | |
| dnsDomainIs(host, ".mapfreconnect.com.br") || | |
| (host == "mapfreconnect.com.br") || | |
| dnsDomainIs(host, ".mapfreseguros.com.br") || | |
| (host == "mapfreseguros.com.br") || | |
| dnsDomainIs(host, ".mapfre.orionbr.com.br") || | |
| (host == "mapfre.orionbr.com.br") || | |
| dnsDomainIs(host, ".mapfresaude.com.br") || | |
| (host == "mapfresaude.com.br") || | |
| dnsDomainIs(host, ".es.mapfre.net") || | |
| (host == "es.mapfre.net") || | |
| dnsDomainIs(host, ".insercaoprofissional.com.br") || | |
| (host == "insercaoprofissional.com.br") || | |
| dnsDomainIs(host, ".aliancadobrasil.com.br") || | |
| (host == "aliancadobrasil.com.br") || | |
| dnsDomainIs(host, ".brasilveiculos.com.br") || | |
| (host == "brasilveiculos.com.br") || | |
| dnsDomainIs(host, ".caixaconnect.com.br") || | |
| (host == "caixaconnect.com.br") || | |
| dnsDomainIs(host, ".extranet.caixa") || | |
| (host == "extranet.caixa") || | |
| dnsDomainIs(host, ".veracruz.com.br") || | |
| (host == "veracruz.com.br") || | |
| dnsDomainIs(host, ".familiasempreprotegidabb.com.br") || | |
| (host == "familiasempreprotegidabb.com.br") || | |
| dnsDomainIs(host, ".vidaseguradora.com.br") || | |
| (host == "vidaseguradora.com.br") || | |
| dnsDomainIs(host, ".peopleway.com.br") || | |
| (host == "peopleway.com.br")) { | |
| return "DIRECT"; | |
| } | |
| if (shExpMatch(url, "*meuip.net.br/*") || | |
| shExpMatch(url, "*intranet.bb.com.br/*") || | |
| shExpMatch(url, "*dired.bb.com.br/*") || | |
| shExpMatch(url, "*infor.bb.com.br/*") || | |
| shExpMatch(url, "*disap.bb.com.br/*") || | |
| shExpMatch(url, "*dicom.bb.com.br/*") || | |
| shExpMatch(url, "*plataforma.extranet.bb.com.br/*") || | |
| shExpMatch(url, "*login.extranet.bb.com.br/*") || | |
| shExpMatch(url, "*plataforma.hm.bb.com.br/*") || | |
| shExpMatch(url, "*login.hm.bb.com.br/*") || | |
| shExpMatch(url, "*mobbseg.bb.com.br/*") || | |
| shExpMatch(url, "*seguridade.bb.com.br/*") || | |
| shExpMatch(url, "*gol.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*solucoespj.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*intranet1.bb.com.br/*") || | |
| shExpMatch(url, "*plataforma3.hm.bb.com.br/*") || | |
| shExpMatch(url, "*hm.estatico.bb.com.br/*") || | |
| shExpMatch(url, "*estatico.extranet.bb.com.br/*") || | |
| shExpMatch(url, "*mobileteste.hm.bb.com.br/*") || | |
| shExpMatch(url, "*aapf.hm.bb.com.br/*") || | |
| shExpMatch(url, "*aapfprojeto.hm.bb.com.br/*") || | |
| shExpMatch(url, "*aapjprojeto.hm.bb.com.br/*") || | |
| shExpMatch(url, "*canais.labbs.com.br/*") || | |
| shExpMatch(url, "*rocket.gdigi.labbs.com.br/*") || | |
| shExpMatch(url, "*connections.bb.com.br/*") || | |
| shExpMatch(url, "*gitlab.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*atf.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*mobi2.desenv.bb.com.br/*") || | |
| shExpMatch(url, "*alm.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*vhs.labbs.com.br/*") || | |
| shExpMatch(url, "*eni.bb.com.br/*") || | |
| shExpMatch(url, "*canais.fontes.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*devops.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*softwarelivre.bb.com.br/*") || | |
| shExpMatch(url, "*git.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*plataforma.atendimento.bb.com.br/*") || | |
| shExpMatch(url, "*intradev8.bb.com.br/*") || | |
| shExpMatch(url, "*estatico.bb.com.br/*") || | |
| shExpMatch(url, "*ram.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*dsdb2d01.plexdes.bb.com.br/*") || | |
| shExpMatch(url, "*upb.bb.com.br/*") || | |
| shExpMatch(url, "*mob.hm.bb.com.br/*") || | |
| shExpMatch(url, "*uc.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*buildforge.intranet.bb.com.br/*") || | |
| shExpMatch(url, "*cadastro.mapfreinvestimentos.com.br/*") || | |
| shExpMatch(url, "*backoffice.mapfreinvestimentos.com.br/*") || | |
| shExpMatch(url, "*rnsweb.ceser.org.br/*") || | |
| shExpMatch(url, "*cesvi.orionbr.com.br/*")) { | |
| return "PROXY vbr008002-029.bbmapfre.corp:80"; | |
| } | |
| else return "DIRECT"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment