Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
No Format
cat << 'EOF' >>~/proxy_setup.sh

#VAProxy
ActProxy=127.0.0.1:80


#ActiveProxyVar
ActiveProxyVar=$ActProxy
httpproxyvar=http://$ActiveProxyVar/
httpsproxyvar=http://$ActiveProxyVar/
ftpproxyvar=ftp://$ActiveProxyVar/

#Domain
domainvar=alsglobal.com

cat << 'EOL' >>/etc/environment
no_proxy=localhost, 127.0.0.1, *.$domainvar
NO_PROXY=localhost, 127.0.0.1, *.$domainvar
http_proxy="$httpproxyvar"
HTTP_PROXY="$httpproxyvar"
https_proxy="$httpsproxyvar"
HTTPS_PROXY="$httpsproxyvar"
ftp_proxy="$ftpproxyvar"
FTP_PROXY="$ftpproxyvar"
EOL


cat << 'EOL' >/etc/apt/apt.conf.d/95proxies
Acquire::http::proxy "$httpproxyvar";
Acquire::ftp::proxy "$ftpproxyvar";
Acquire::https::proxy "$httpsproxyvar";
EOL

EOF
chmod +x ~/proxy_setup.sh
~/proxy_setup.sh

cat << 'EOF' >~/crt_import.sh
#!/bin/bash

dirname=zscaler
crtname=ZscalerRootCertificate-2048-SHA256

mkdir /usr/local/share/ca-certificates/$dirname
cat << EOL >/usr/local/share/ca-certificates/$dirname/$crtname.crt
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
EOL
update-ca-certificates
EOF
chmod +x ~/crt_import.sh
~/crt_import.sh

echo "reboot or export environment variables before moving forward"




https://serverfault.com/a/561100
##https???

...