Daily IT pill

Is there any tool i n Linux to dump the system memory?

Yes, you can grab Linux Memory Grabber from GitHub instead of trying to read directly to /dev/mem or develop yourself a program. Keep in mind that is impossible to read all RAM and not modify at least a tiny part of it while doing so.

Daily tip

How do I check if the live patching kernel feature is enabled, regardless of the distribution?

You need to check if the below directory exists in the virtual sysfs file system.

ls -ld /sys/kernel/livepatch

Daily tip

How to transparently redirect HTTP requests on port 80 to a http proxy on port 8080?

By using the iptable nat

First pre-requisite is enabling IP forwarding on the system

#echo “net.ipv4.conf.all.forwarding =1”>>/etc/sysctl.conf && sysctl -p

Then issue the below iptable command

#iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080

Daily tip

How do I troublshoot the CIFS client in Linux?

Please activate tracing and debugging of the module cifs.ko by running these commands as root

#echo 1 > /proc/fs/cifs/traceSMB
#echo 7 > /proc/fs/cifs/cifsFYI

Then run dmesg to check for info