Thursday, November 21, 2019

SSH Port Forward

nohup socat TCP-LISTEN:3306,fork TCP:172.31.65.183:3306 &

Trace the Linux process

 o Start a tcpdump on the affected systems:

  -#tcpdump -s 0 -n  host <ipaddress> > -w /tmp/$(hostname)-$(date +"%Y-%m-%d-%H-%M-%S").pcap &

 o Gather an strace of a command that easily reproduces this issue, such as a 'cd' or ls of the directory in question:

  -#strace -fvttTyyx -s 1024 -o /tmp/$(hostname)-strace.out <insert command here to reproduce the issue>

 o Once the strace returns an error, stop the tcpdump:

  -#killall tcpdump

Create rpm and deb using fpm

Create rpm and deb using fpm  fpm -s dir -t rpm -n unbound-exporter -v 1.0 --prefix /usr/bin unbound_exporter   fpm -s dir -t rpm -n unbound...