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); } }

SSH login on EdgeOS

scp ~/.ssh/id_rsa.pub [email protected]:~/id_rsa.pub ssh [email protected] configure loadkey user ~/id_rsa.pub set service ssh disable-password-authentication commit save exit

HP 5900 IRF Configuration

The following is based on configuring IRF between 2 x HP 5900AF-48XG-4QSFP+ Switch Connect to the “Master” switch: <HP>sys [HP]sysname Master [Master] irf member 1 priority 10 [Master]interface range Ten-GigabitEthernet 1/0/45 to Ten-GigabitEthernet 1/0/48 [Master-if-range] shut [Master-if-range] quit [Master] irf-port 1/2 [Master-irf-port1/2] port group interface ten1/0/45 [Master-irf-port1/2] port group interface ten1/0/46 [Master-irf-port1/2] port group interface ten1/0/47 […]

Add SSL certificate to Shout/TheLounge IRC client

Certificates should be stored here: /usr/lib/node_modules/shout/cert.pem /usr/lib/node_modules/shout/key.pem or /usr/lib/node_modules/thelounge/cert.pem /usr/lib/node_modules/thelounge/key.pem Config should look like this: https: { // // Enable HTTPS support. // // @type boolean // @default false // enable: true, // // Path to the key. // // @type string // @example “sslcert/key.pem” // @default “” // key: “key.pem”, // // Path to […]