Soluții

Tutorial: creating a UFW Rule for DNS access from a specific IP

UFW (Uncomplicated Firewall) is a straightforward tool for managing firewall rules on Linux systems. If you want to allow DNS access only from a specific IP, you can do so by configuring a specific rule in UFW. Here’s how:

Step 1: Install UFW (if not already installed)

If you don’t already have UFW installed, you can do so using the following command in the terminal:

sudo apt install ufw

Step 2: Enable UFW

If UFW is not already enabled, you can do so using the command:

sudo ufw enable

Step 3: Adding a Rule for DNS Access

To allow DNS access only from a specific IP (let’s assume the IP address is 192.168.1.100), use the command:

sudo ufw allow from 192.168.1.100 to any port 53

This command allows traffic from the specified IP address to any destination on port 53, which is the standard port used for the DNS service.

Step 4: Checking the Added Rule

You can check the added rule using the command:

sudo ufw status

This will show you a list of all active UFW rules.

Step 5: Testing DNS Access

Finally, you can test whether the rule is working as intended. You can use a command such as nslookup or dig to test DNS access to an external DNS server from the specified IP address.

Make sure to replace the IP address specified in the command sudo ufw allow from 192.168.1.100 to any port 53 with the IP address you want to allow DNS access from. Also, verify and adjust any other settings or ports as per your specific needs.

[mai mult...]

A friendly guide to updates in CentOS

Step 1: Start with the Terminal

Open up the terminal – that little space where you can do big things! It’s like having your personal magician who can work wonders with just a few simple commands. Find it in your menu or hit Ctrl + Alt + T to bring it up.

Step 2: Check for Updates

It’s time to see what surprises today has in store! Type with confidence:

sudo yum check-update

This command will look for the latest updates available for your system and bring you all the news.

Step 3: See What’s New

Let’s see what’s on the list! Run the command:

sudo yum list updates

Here you’ll see a list of all the packages that are ready to have a little update party on your system. Give them a little wave!

Step 4: Update Everything

It’s time to get the party started! Type:

sudo yum update

This will take all the updates you’ve selected and install them for you. It’s like giving your system a new lease on life!

[mai mult...]

A friendly guide to updates in Linux

Step 1: Start with the Terminal

Open up the terminal – that little space where you can do big things! It’s like having your personal magician who can work wonders with just a few simple commands. Find it in your menu or hit Ctrl + Alt + T to bring it up.

Step 2: Check for Updates

It’s time to see what surprises today has in store! Type with confidence:

sudo apt update

This command will look for the latest updates available for your system and bring you all the news.

Step 3: See What’s New

Let’s see what’s on the list! Run the command:

sudo apt list --upgradable
[mai mult...]