Contato: [email protected]
Host: covid-chagas.vps.etica.ai / vps20038.publiccloud.com.br (191.252.103.250)
sudo apt-get update && install squid
cp -rp /etc/squid/squid.conf /etc/squid/squid.conf-orig
echo 'acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost manager http_access deny manager http_access allow localhost http_port 0.0.0.0:80 access_log daemon:/var/log/squid/access.log squid coredump_dir /var/spool/squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 visible_hostname covid-chagas.vps.etica.ai
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Covid-Chagas Proxy Authentication auth_param basic credentialsttl 2 hours acl auth_users proxy_auth REQUIRED http_access allow auth_users http_access deny all http_reply_access allow all icp_access allow all miss_access allow all' > /etc/squid/squid.conf
sudo apt-get install apache2-utils sudo touch /etc/squid/passwd sudo chown proxy: /etc/squid/passwd
usuario=$1 senha=$2
sudo htpasswd -b /etc/squid/passwd $usuario $senha
sudo systemctl enable squid
sudo systemctl start squid
sudo systemctl start squid
sudo systemctl status squid
curl -x "http://$usuario:$[email protected]:80" https://ipinfo.io { "ip": "191.252.103.250", "hostname": "vps18059.publiccloud.com.br", "city": "São Paulo", "region": "São Paulo", "country": "BR", "loc": "-23.5475,-46.6361", "org": "AS27715 Locaweb Serviços de Internet S/A", "postal": "01000-000", "timezone": "America/Sao_Paulo", "readme": "https://ipinfo.io/missingauth" }
curl -s -x 'http://grodriguez:[email protected]:80' http://cnes2.datasus.gov.br/Mod_Ind_Tipo_Leito.asp?VEstado=00 | html2text
CnesWeb - Cadastro Nacional de Estabelecimentos de Saúde [imagem do topo cnes]
Indicadores - Cnes Consulta Leitos Estado: [One of: ESCOLHA ESTADO/Escolha/ACRE/ALAGOAS/AMAZONAS/AMAPA/BAHIA/CEARA/ DISTRITO FEDERAL/ESPIRITO SANTO/GOIAS/MARANHAO/MINAS GERAIS/MATO GROSSO DO SUL/MATO GROSSO/PARA/PARAIBA/PERNAMBUCO/PIAUI/PARANA/RIO DE JANEIRO/RIO GRANDE DO NORTE/RONDONIA/RORAIMA/RIO GRANDE DO SUL/SANTA CATARINA/SERGIPE/SAO PAULO/ TOCANTINS] Município: [img/imprimir.gif] [One of: ---MUNICÍPIO---] Competência: [One of: ---COMPETÊNCIA---]
|Codigo|Descrição|Existente|Sus|Não_Su| |CIRÚRGICO_________________________________| |01|BUCO_MAXILO_FACIAL_________________________|1119|679|440| |02|CARDIOLOGIA____________________|5027|2992|2035| |03|CIRURGIA_GERAL___________________|58222|37344|20878| |04|ENDOCRINOLOGIA______________________|384|125|259| |05|GASTROENTEROLOGIA_____________|1894|804|1090| |06|GINECOLOGIA_____________________|6912|4219|2693| |08|NEFROLOGIAUROLOGIA_______________|3211|1767|1444| |09|NEUROCIRURGIA____________________|4860|3508|1352| |11|OFTALMOLOGIA_____________________|2481|1151|1330| |12|ONCOLOGIA________________________|5078|3490|1588| |13|ORTOPEDIATRAUMATOLOGIA___________|18555|14248|4307| |14|OTORRINOLARINGOLOGIA_______________|2050|737|1313| |15|PLASTICA________________________|2560|999|1561| |16|TORACICA________________________|1088|581|507| |67|TRANSPLANTE____________________|1274|1034|240| |90|QUEIMADO_ADULTO_________________|233|221|12| |91|QUEIMADO_PEDIATRICO__________|88|78|10| |TOTAL_______________________________|___115036|_73977|__41059|
Squid Cache: Version 3.5.27 Service Name: squid Ubuntu linux configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' 'BUILDCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/squid3-a0_cdd/squid3-3.5.27=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=deprecated -Wno-error=format-truncation -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--libexecdir=/usr/lib/squid' '--mandir=/usr/share/man' '--enable-inline' '--disable-arch-native' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,smb_lm' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group' '--enable-url-rewrite-helpers=fake' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--disable-translation' '--with-swapdir=/var/spool/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-build-info=Ubuntu linux' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/squid3-a0_cdd/squid3-3.5.27=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/squid3-a0_cdd/squid3-3.5.27=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=deprecated -Wno-error=format-truncation'
acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost manager http_access deny manager http_access allow localhost http_port 0.0.0.0:80 access_log daemon:/var/log/squid/access.log squid coredump_dir /var/spool/squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 visible_hostname covid-chagas.vps.etica.ai
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Covid-Chagas Proxy Authentication auth_param basic credentialsttl 2 hours acl auth_users proxy_auth REQUIRED http_access allow auth_users http_access deny all http_reply_access allow all icp_access allow all miss_access allow all