Published November 19, 2020 SSH Notifications via email IP=”$(echo $SSH_CONNECTION | cut -d ” ” -f 1)”HOSTNAME=$(hostname)NOW=$(date +”%e %b %Y, %a %r”) echo ‘Someone from ‘$IP’ logged into ‘$HOSTNAME’ on […]
Published April 15, 2020 Add Webmin to FirewallD The below will open tcp port 10000 on FirewallD to get access to webmin firewall-cmd –permanent –zone=public –add-port=10000/tcp A reload of FirwwallD […]
Published September 25, 2012 Delete a nat rule in iptables First of all I list all the rules including line numbers like this; iptables -L -t nat –line-numbers I then look at […]
Published October 11, 2013 TCPDUMP to sniff headers This tcpdump command will grab the first 1024 bytes (vs. smaller 68 or so) and line buffer the output for all packets […]