Linux: 20 Iptables Examples For New SysAdmins
According to the official project site:
This Linux based firewall is controlled by the program called iptables to handles filtering for IPv4, and ip6tables handles filtering for IPv6. I strongly recommend that you first read our quick tutorial that explains how to configure a host-based firewall called Netfilter (iptables) under CentOS / RHEL / Fedora / Redhat Enterprise Linux. This post lists most simple iptables solutions required by a new Linux user to secure his or her Linux operating system from intruders. Lire la suite…
30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
An alias is nothing but the shortcut to commands. The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display a list of all defined aliases. You can add user-defined aliases to ~/.bashrcfile. You can cut down typing time with these aliases, work smartly, and increase productivity at the command prompt.
More about aliases
The general syntax for the alias command for the bash shell is as follows:
Task: List aliases
Type the following command:
Sample outputs:
alias ..='cd ..' alias amazonbackup='s3backup' alias apt-get='sudo apt-get' ...
By default alias command shows a list of aliases that are defined for the current user.
Top 32 Nmap Command Examples For Sys/Network Admins
The purpose of this post is to introduce a user to the nmap command line tool to scan a host and/or network, so to find out the possible vulnerable points in the hosts. You will also learn how to use Nmap for offensive and defensive purposes.
More about nmap
From the man page:
It was originally written by Gordon Lyon and it can answer the following questions easily:
- What computers did you find running on the local network?
- What IP addresses did you find running on the local network?
- What is the operating system of your target machine?
- Find out what ports are open on the machine that you just scanned?
- Find out if the system is infected with malware or virus.
- Search for unauthorized servers or network service on your network.
- Find and remove computers which don’t meet the organization’s minimum level of security.
Reverse proxy Apache et certificat Let’s Encrypt wildcard pour vos services en réseau local
Quand on multiplie les services auto-hébergés, on finit avec une liste de IP:port impossible à retenir, du HTTP en clair et des avertissements de navigateur. La solution propre : un seul Apache en reverse proxy, un certificat wildcard Let’s Encrypt et des noms du type paperless.home.mondomaine.tld.
Le point qui change tout : avec la validation DNS-01, Let’s Encrypt vérifie que vous possédez le domaine en lisant un enregistrement TXT. Aucun port n’a besoin d’être ouvert vers Internet et vos services peuvent rester strictement locaux.
Lire la suite…
