VMware ESX Upgrade

esxcli network firewall ruleset set -e true -r httpClient esxcli software profile update -p ESXi-6.5.0-20171204001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Cisco ASA SNMPv3 Config

snmp-server group $GROUPNAME v3 priv snmp-server user $USERNAME $GROUPNAME v3 auth sha $AUTHPW priv aes 128 $PRIVPW snmp-server host $INTERFACE $IP poll version 3 $USERNAME

Install Terraform on CentOS 7 Minimal

yum -y update yum -y install wget unzip wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip unzip terraform_0.11.1_linux_amd64.zip mv terraform /usr/local/bin/ terraform –version

Varnish HTTP to HTTPS redirect

sub vcl_recv { if ( (req.http.host ~ “^(?i)www.x.dev42.dk” || req.http.host ~ “^(?i)x.dev42.dk”) && req.http.X-Forwarded-Proto !~ “(?i)https”) { return (synth(750, “”)); } } sub vcl_synth { if (resp.status == 750) { set resp.status = 301; set resp.http.Location = “https://x.dev42.dk” + req.url; return(deliver); } }