Linux Tutorial

Linux Network Configuration Commands

Fadıl

Under Linux NIC naming rules: eth0, eth1. First Ethernet card, and the second block. lo is the loopback interface, its fixed IP address is 127.0.0.1, mask 8. It represents your machine itself.

Ifconfig is the view card information

ifconfig [Interface]

The interface is optional, and if not this information is displayed for all network cards in the system. If you add this option to display the specified card information.

For example; ifconfig eth0

How to Apply Resource Limits Via limits.conf for a Docker Container

How to Apply Resource Limits Via limits.conf for a Docker Container

Fadıl

There are several ways in which resource limits can be applied to the docker container. Majorly below 3 ways can be used to set resource limits globally or individually for each container.

Setting Global limits for all containers

1. In docker 1.6 or later, we could set ulimit in /etc/sysconfig/docker as:

# vi /etc/sysconfig/docker
OPTIONS='--insecure-registry=172.30.0.0/16 --selinux-enabled --default-ulimit nproc=1024:2048'

This will set a soft limit of 1,024 and a hard limit of 2,048 child processes for all containers.

How to Configure Openfiles Limit for Docker Containers

Fadıl

The Ask

From the docker host (CentOS 7) is possible to see that the open files limit is set to 1024.

# ulimit -a | grep open
open files    (-n) 1024

But the docker container has this limit set to 1048576

[root@e86ee2f0f6a0 /]# ulimit -a | grep open
open files   (-n) 1048576

Is it possible to change this value for the docker containers?

The Answer

The open files limit is set by default to 1048576. This limit is not related to the host’s limit. There are 2 possible way how to change this limit:

Performing Simple nmap Scan in Windows and Linux

Performing Simple nmap Scan in Windows and Linux

Fadıl

Hi! Nmap is the most powerful tool to check the security level of your website so in this post, I am going to say how to perform it.

There are several scan techniques to know about the server but the plain scan gives you the ports. A plain scan can be filtered by the firewall so every website ports cannot be detected.

Open cmd in windows or terminal in Linux

Top 10 Operating Systems Hackers Use!

Fadıl

Many users have a problem to choose the operating system, while many don’t want to change, Hackers have problem with their pre-installed Windows operating system.

Now its time to pause window and switch to some more advanced operating system for ethical hacking, pentesting. Weakness in the operating system is best for a hacker to gain access, while open source makes the operating system to run at a better cost.

Remember ethical hackers can only fight with another black hat when they are on the same platform.