Month: March 2018
-
An old wiki post detailing a compromised machine from 2006
Details of my post-mortem on a mail/web server that was compromised back in 2006. Here
-
Getting systemd services to wait for networking in Raspbian
For isc-dhcp-server: I tried several things which did not work. I concluded that this is primarily because isc-dhcp-server doesn’t use a true systemd script. So I edited the sysV startup script (/etc/init.d/isc-dhcp-server) and inserted a loop that waits until the non-loopback IP is up. The loop times out after 10 seconds. At the beginning of […]
-
When packer seems to hang while uploading to vCenter
In my case, the vCenter was “asking” if I wanted to accept the self-signed certs. Packer doesn’t really pass that on to you. Add these options to the “post-processors” section: “options”: [ “–acceptAllEulas”, “–disableVerification”, “–noSSLVerify” ],
-
Set an IP address with one line in RHEL7/CentOS7
Use this line: # nmcli con mod ens160 ipv4.method static ipv4.addresses ${IPADDR} ipv4.gateway ${GATEWAY} ipv4.dns ${DNS_SERVERS} The DNS servers (if more than one) should be in quotes and comma-separated (i.e. “10.1.1.5,10.2.2.6”)