Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

UFW Uncomplicated Fire Wall

  • Thread starter Thread starter benderb
  • Start date Start date
B

benderb

Guest
First, make sure UFW (Uncomplicated Fire Wall) is installed. It should be installed by default in Ubuntu, but if it’s not, you can install the package using apt-get.

IMPORTANT:
We’re going to add a firewall rule to permit your SSH connection on port 22/tcp. That is the default SSH port. If you have changed it to something else, you must modify the rule below to reflect your required port number. Failure to do so will break your SSH connection and lock you out of the server as soon as you enable the firewall!

Confirm UFW is installed:

Bash:
sudo apt-get install ufw

*Set the default access rules:**

Bash:
sudo ufw default deny incoming

sudo ufw default allow outgoing

Set the service rules (SSH / HTTPS):

Bash:
sudo ufw allow 22/tcp

sudo ufw allow 443/tcp

Enable the firewall:

Bash:
sudo ufw enable

Check the Firewall status:

Bash:
sudo ufw status

If you ever add or delete rules you should reload the firewall:

Bash:
sudo ufw reload

If you ever need to turn off the firewall:

Bash:
sudo ufw disable
 
Last edited by a moderator:
Fail2ban (optional, recommended)

Fail2ban is an intrusion prevention software framework which protects computer servers from brute-force attacks.

Install:

Bash:
sudo apt-get update

sudo apt-get install fail2ban


Press Y when prompted to proceed with the install.
 
Last edited by a moderator:
Thanks for sharing (y)

Please use the correct BBcodes for the shell command parts of your messages!

I just edit your last message. Please edit your first message with the correct BBcodes Formation.
 

Attachments

  • 7D600E71-C6F3-40BB-B437-CD63083A12CE.jpeg
    7D600E71-C6F3-40BB-B437-CD63083A12CE.jpeg
    257.9 KB · Views: 118
  • A9212886-4150-4CF8-8790-E2BAEEB8CC32.jpeg
    A9212886-4150-4CF8-8790-E2BAEEB8CC32.jpeg
    368.2 KB · Views: 104
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
First, make sure UFW (Uncomplicated Fire Wall) is installed. It should be installed by default in Ubuntu, but if it’s not, you can install the package using apt-get.

IMPORTANT:
We’re going to add a firewall rule to permit your SSH connection on port 22/tcp. That is the default SSH port. If you have changed it to something else, you must modify the rule below to reflect your required port number. Failure to do so will break your SSH connection and lock you out of the server as soon as you enable the firewall!

Confirm UFW is installed:

Bash:
sudo apt-get install ufw

*Set the default access rules:**

Bash:
sudo ufw default deny incoming

sudo ufw default allow outgoing

Set the service rules (SSH / HTTPS):

Bash:
sudo ufw allow 22/tcp

sudo ufw allow 443/tcp

Enable the firewall:

Bash:
sudo ufw enable

Check the Firewall status:

Bash:
sudo ufw status

If you ever add or delete rules you should reload the firewall:

Bash:
sudo ufw reload

If you ever need to turn off the firewall:

Bash:
sudo ufw disable
thanks
 
Fail2ban (optional, recommended)

Fail2ban is an intrusion prevention software framework which protects computer servers from brute-force attacks.

Install:

Bash:
sudo apt-get update

sudo apt-get install fail2ban


Press Y when prompted to proceed with the install.
hello, after installation do you leave everything by default or are there other tricks?
 
First, make sure UFW (Uncomplicated Fire Wall) is installed. It should be installed by default in Ubuntu, but if it’s not, you can install the package using apt-get.

IMPORTANT:
We’re going to add a firewall rule to permit your SSH connection on port 22/tcp. That is the default SSH port. If you have changed it to something else, you must modify the rule below to reflect your required port number. Failure to do so will break your SSH connection and lock you out of the server as soon as you enable the firewall!

Confirm UFW is installed:

Bash:
sudo apt-get install ufw

*Set the default access rules:**

Bash:
sudo ufw default deny incoming

sudo ufw default allow outgoing

Set the service rules (SSH / HTTPS):

Bash:
sudo ufw allow 22/tcp

sudo ufw allow 443/tcp

Enable the firewall:

Bash:
sudo ufw enable

Check the Firewall status:

Bash:
sudo ufw status

If you ever add or delete rules you should reload the firewall:

Bash:
sudo ufw reload

If you ever need to turn off the firewall:

Bash:
sudo ufw disable
Thanks for sharing
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
thank you very much
 
thank you for sharing this buddy
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top