I want to set up through gufw or through ufw directly from the terminal, the next settings from the first print screen
The second print screen is the one from gufw, if in that gufw window, I must set up these rules.
I want to set up through gufw or through ufw directly from the terminal, the next settings from the first print screen
The second print screen is the one from gufw, if in that gufw window, I must set up these rules.
HI @xmty welcome to the Linux community.
To implement the firewall rules shown in your screenshot via UFW, you can follow these steps:
sudo ufw allow from 141.0.145.180/32 to any port 64297 proto tcp
This command allows TCP traffic on port 64297 only from the specific IP 141.0.145.180/32
.
sudo ufw allow 0:64000/tcp
This allows incoming TCP traffic on all ports from 0 to 64000 from any IP address.
sudo ufw enable
sudo ufw status numbered
or…
To configure this via Gufw (GUI):
gufw
in the terminal).141.0.145.180/32
):
141.0.145.180/32
.Once these rules are added, they will reflect the settings you showed in your screenshot.
Please let me know if you require any further assistance!
Thak you very much @hydn
The first step, it seems that it works perfect.
The second rule, it seems that it doesn’t work. I have tried also through the terminal:
sudo ufw allow 0:64000/tc
ERROR: Bad Port.
Also, in the gufw, it is not accepted.
I appreciate.
That’s my error. Try:
sudo ufw allow 1:64000/tcp
You are the best @hydn