ipset with iptables

Ipset is a great addition on for iptables to use when blocking IPs at subnet,IP or country level. A brief overview… A list of all the useful commands can be found at https://wiki.archlinux.org/index.php/Ipset to create my blocklists I used… https://www.ip2location.com/blockvisitorsbycountry.aspx#form…

Linux Perf

Random src_host$ python -m SimpleHTTPServer dst_host$ curl http://src_host:8080/file_to_transfer_here Hard Shutdown echo 1 > /proc/sys/kernel/sysrq echo 0 > /proc/sysrq-trigger MX test telnet 127.0.0.1 25 HELO dcrelay.taleo.net MAIL FROM: testing@customerDNS.com RCPT TO: myown@emailaddress.com DATA SUBJECT: Test Testin 123 . QUIT Commands espeak…

Systemd Cheatsheet

systemd vs sysVinit systemd cheatsheet Service Commands systemctl stop service-name systemd stop running service systemctl start service-name systemctl start service systemctl restart service-name systemd restart running service systemctl reload service-name reloads all config files for service systemctl status service-name systemctl…

Yum commands

yum list [available|installed|extras|updates|obsoletes|all|recent] [pkgspec] This command lets you list packages in any repository enabled on your system or installed. It also lets you list specific types of packages as well as refine your list with a package specification of any…

VNC on a RaspberryPi

Taken from https://www.raspberrypi.org/documentation/remote-access/vnc/ tutorial on howto setup VNC on any raspberrypi On your Pi (using a monitor or via SSH), install the TightVNC package: sudo apt-get install tightvncserver Next, run TightVNC Server which will prompt you to enter a password and…

Wget Examples

1. Download a single file from the Internet wget http://domain.com/file.iso 2. Download a file but save it locally under a different name wget ‐‐output-document=filename.html domain.com 3. Download a file and save it in a specific folder wget ‐‐directory-prefix=folder/subfolder domain.com 4.…

Sed 1-liners

A more refined post than http://devnull.mine.nu/2015/05/30/sed-example-tutorials/  with numerous 1-liners for sed, orginally taken from here http://www.pement.org/sed/sed1line.txt  many thanks! 😀 FILE SPACING: # double space a file sed G # double space a file which already has blank lines in it. Output file…