How to make an Nginx Webserver in 7 minutes

Sdílet
Vložit
  • čas přidán 16. 05. 2024
  • In this tutorial you will learn how to make an nginx webserver in under 7 minutes! I cover the basics on what a webserver is, how it works and how to make one! You do not need expensive equipment to do this as a simple Raspberry Pi like the one I used (RPI 4B 4gb ram) will work.
    The best operating system for webservers like these ones (my personal opinion) is debian. If you know a bit about raspberry pi's you'll know that the operating system I actually used is Raspberry pi OS lite, which is pretty much debian but made for raspberry pi's (You can notice this because my username is pi, if you use debian the default username should be root).
    Anyways, here are the timestamps and commands I used in the video and the commands:
    0:00 - Introduction
    0:18 - Hardware
    0:28 - Operating system
    0:57 - Initial setup
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt install nginx
    ip a
    1:54 - Installing a database
    sudo apt install mysql-server
    or
    sudo apt install mariadb-server
    sudo mysql_secure_installation
    2:47 - PHP installation
    sudo add-apt-repository universe
    (Add apt repository is for ubuntu users only)
    sudo apt install php-fpm php-mysql
    sudo nano /etc/nginx/sites-available/default
    nginx -t
    4:20 - Testing everything works
    cd /var/www/html/
    (Remember to add angled bracket before php, youtube description does not let me add it)
    ?php
    phpinfo();
    5:14 - Drag and dropping files with filezilla into the server
    filezilla-project.org/
    Try port 21 if port 22 does not work
  • Jak na to + styl

Komentáře • 188

  • @KianBrose
    @KianBrose  Před 3 lety +9

    Messed up the resolution on the new outro, was considering delaying the video more until the new one is complete but that would probably take a couple of days, so I apologize if the last 15 seconds of the video bother your ocd xD

    • @dhruvagrawal3856
      @dhruvagrawal3856 Před 3 lety +2

      @Kian Brose I think that the quality of your video is really good

  • @ShawnKirk007
    @ShawnKirk007 Před 2 lety +14

    WOW! This is the best tutorial I think I've ever watched! Fast... To the point will... and No filler. Awesome!

    • @KianBrose
      @KianBrose  Před 2 lety +1

      Ty! messed the sound though

  • @sergeyzinovkin7123
    @sergeyzinovkin7123 Před 2 lety +5

    Thank you! Great video! Very informative and without any excess information!

  • @dusselfussel2540
    @dusselfussel2540 Před 3 lety +6

    love your vids i hope your channel blows up

  • @soalersystem123
    @soalersystem123 Před 7 měsíci

    So happy to find your channel ❤

  • @trtlphnx
    @trtlphnx Před 3 lety +3

    Thanks for All the Information, It is Incredibly Helpful!!!!

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Glad you liked it! Ty for watching ^^

  • @arvram6103
    @arvram6103 Před 3 lety +1

    Nice video. I Always learn something new from your videos! Thnx for great content!

    • @KianBrose
      @KianBrose  Před 3 lety

      Ty! Learning something new each vid is the plan xd

  • @xifias4674
    @xifias4674 Před 3 lety +4

    Now I want a rasperry pi. Great video!

    • @KianBrose
      @KianBrose  Před 3 lety +3

      It's also doable from quite literally any device whatsoever, even possible on old wii's and nintendo's as long as you manage to install linux on it haha

  • @HoundSec
    @HoundSec Před 11 měsíci

    Clean precise and informative!

  • @fuujutsushi
    @fuujutsushi Před 2 lety +1

    Tack så mycket Kian, underbara videoinnehåll

  • @viq234
    @viq234 Před 3 lety +1

    I was going to look for videos about this. Thanks

  • @Gouki54
    @Gouki54 Před 3 lety +1

    ah cool! ca fait longtemps que je l'attendais cette vidéo

    • @KianBrose
      @KianBrose  Před 3 lety

      J'éspère que ça ne décèptione pas trop xD

  • @Billiam112
    @Billiam112 Před 3 lety +10

    One thing I've always been longing for when it comes to these types of vlds is 1. Using node
    2. Setting up nginx in a secure way to allow outside traffic to it
    3. And, as a final step, how to actually configure to use a self owned domain name and not the public ip.
    Great video nonetheless. 😊👌

    • @KianBrose
      @KianBrose  Před 3 lety +1

      I actually have a video about 2 and 3, i never touched nodejs in my life but maybe someday xD

    • @AaronEstebanSEO
      @AaronEstebanSEO Před 2 lety

      I've already hosted a sales page to sell my software before using a Raspberry Pi 4 and my own domain. I built the LAMP stack with it back then, but now I'm more into "NGINX" since it's faster and more secure.

  • @dexter2765
    @dexter2765 Před 3 lety +1

    Really good content
    love you

  • @KomarovPavel-if8ud
    @KomarovPavel-if8ud Před 2 lety

    nice one, Paul Dano. Very good

  • @kromerdealer8345
    @kromerdealer8345 Před 3 lety +1

    Thanks, now i want raspberry pi even more

    • @KianBrose
      @KianBrose  Před 3 lety +1

      It will work on anything that you can install linux on xD even an ol' 2010 phone

  • @dhruvagrawal3856
    @dhruvagrawal3856 Před 3 lety +1

    Hey Bro your setup Is Very Cool

  • @papesldjnsjkfjsn
    @papesldjnsjkfjsn Před 3 lety +2

    your videos are fire keep it up

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Thanks! Will keep on trying to improve the quality for each new video xD

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn Před 3 lety +2

      @@KianBrose they are already much better than most of the content i see in youtube

    • @KianBrose
      @KianBrose  Před 3 lety +1

      @@papesldjnsjkfjsn To be fair yeah I feel like most programming tutorials are very poorly edited and fail to keep the viewers entertained while remaining educational, hopefully I can fill that void xD

    • @papesldjnsjkfjsn
      @papesldjnsjkfjsn Před 3 lety +1

      @@KianBrose exactly!

  • @tars3842
    @tars3842 Před 3 lety +2

    Amazing work

  • @dominiquedopera8134
    @dominiquedopera8134 Před 2 lety +1

    Very informative. Was the database installed to provide a repository for eventual dynamic content?

    • @KianBrose
      @KianBrose  Před 2 lety

      That is correct, if you were to want to use PHP to read, store or work with data on a database everything is set up correctly in order to do that (So for example wordpress)

  • @DavidDarnes
    @DavidDarnes Před 8 měsíci

    Even though I’ve already gone through these steps this was really helpful to see and understand the steps. Would love a part 2 on how to safely open up that server to the internet 😊
    Edit: Oh here it is czcams.com/video/X2WQiTvXK9U/video.htmlsi=gk_IEpY5kJCFQyt2

  • @xyhard8603
    @xyhard8603 Před 3 lety +1

    Dude you are absolutly AWESOME! You will continue how to make a webserver? but not in local, in public

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Next in line I have
      - How to port forward (should be incredibly short)
      - Domain tutorial (how website names work, www. .com .net etc etc)
      - Wordpress tutorial
      - How to make a custom website

    • @xyhard8603
      @xyhard8603 Před 3 lety

      I don t use wordpress i just creating websites by my self, portforward... please explain it (i have almost 2 years of webdev)

    • @KianBrose
      @KianBrose  Před 3 lety +1

      @@xyhard8603 Assuming you already have the server done as shown in the tutorial with the website files, you want to know what your public ip address is, then you go to your web browser and type the default gateway of your router, for example 192.168.0.1, enter password, go to port forwarding tab, Forward port 80 for the private ip address of the webserver (in my case the private ip of the raspberry pi), protocols both tcp udp, then you should be able to access the website from your public ip but then again you dont want to get ddosed.
      After port forwarding, buy a domain (recommend domain.com), no need for the "privacy extras", the extension (.com .net .org raelly doesnt matter, just what u like visually and is easy to remember). Create a cloudflare account, go to the dns settings of your newly bought domain, replace name server 1 and 2 by the cloudflare nameservers (they will explain how in account creation)
      Once nameservers are complete, on cloudflare go to the dns tab, add a new A record called @ and the ip address is your public ip address. Go to the ssl tab, check the radio button that says encrypt between browser and cloudflare and tada you now have https certificate fully functional site

    • @xyhard8603
      @xyhard8603 Před 3 lety +1

      Dude... I apreciate you! Good luck with your CZcams Channel and your Carrer! I m still learning, i need to learn sql, php and i want to learn some of python... But what s your future plans?

    • @KianBrose
      @KianBrose  Před 3 lety +1

      @@xyhard8603 Mmm hopefully grow the channel enough so I can become the largest entertaining educational channel on the platform I guess?

  • @TappedCeiling46
    @TappedCeiling46 Před 3 lety +1

    cool, might do this in the future

    • @KianBrose
      @KianBrose  Před 3 lety

      Even if it's not a webserver, lots of things you can do with a raspberry pi like a media server

  • @ITTOMC
    @ITTOMC Před 3 lety +2

    Excellent!

  • @hlaxfors
    @hlaxfors Před 3 lety +1

    Very useful!

  • @alexk9513
    @alexk9513 Před 3 lety +1

    受益良多, 非常感謝你.

  • @CornellBentley
    @CornellBentley Před 2 lety +1

    who are you and where did they clone you? very smart and well put together material THANK YOU KEEP UP THE GOOD WORK!!!

  • @0xapi489
    @0xapi489 Před 3 lety +1

    Amazing.

  • @dhruvagrawal3856
    @dhruvagrawal3856 Před 3 lety +1

    You should do a setup tour

    • @KianBrose
      @KianBrose  Před 3 lety +1

      It's really nothing special, just a random guy with his phone as a camera, a microphone and a lot of editing

  • @hunt_82
    @hunt_82 Před 11 měsíci

    Hi dear, thanks for your video, but after minute 03:45 I don't know witch keyboard buttons do you push, please, can you help me?

    • @KianBrose
      @KianBrose  Před 11 měsíci

      I had accidentally hit some things on the keyboard that I shouldnt have so it looked a bit weird, you just have to go down with the arrow keys

    • @hunt_82
      @hunt_82 Před 11 měsíci

      @@KianBrose Thanks for the quick response but I still can't fix it. I place the cursor on the curly brace, hit ctrl and R but then I can't uncomment because the cursor doesn't move. Can you help me please?

  • @TheWorthyWubba
    @TheWorthyWubba Před 3 lety +2

    So I tried doing this in Termux ( Terminal Emulator for android w/Linux env ), I'm already finished with the installation and Database part.
    Just wanna ask where did you get the "root /var/www/html;" .
    Also whenever I do the "nano /etc/nginx/sites-available/default" It always says that the directory doesn't exist. So I go to the nginx dir. and make a directory called "sites-available". I then made a file named "default". Is it the right thing to do?
    EDIT: What I mean about the Database part is that I already changed the password for root and can now login using the root. Also, the part where you do "add-apt-repository universe", it doesn't work on the Termux but i guess it isn't that important because I already installed the PHP needed.

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Hmm, installing it on android is interesting, if you have access to a linux type shell you can use nginx -t which should print out test results and the location of these files

    • @TheWorthyWubba
      @TheWorthyWubba Před 3 lety +2

      @@KianBrose It's solved now, the nginx has it's own configuration file and I saw the line of code that you editted in their.

    • @KianBrose
      @KianBrose  Před 3 lety +1

      @@TheWorthyWubba glad to hear that!

    • @TheWorthyWubba
      @TheWorthyWubba Před 3 lety

      Still not done, I'll update you if it works

    • @TheWorthyWubba
      @TheWorthyWubba Před 3 lety +2

      It worked! All I need to do is port forward the site.

  • @ValorantNether
    @ValorantNether Před 3 lety +3

    Nice

    • @KianBrose
      @KianBrose  Před 3 lety +1

      czcams.com/video/a8c5wmeOL9o/video.html&ab_channel=Dylancliff111

  • @imadafzal3368
    @imadafzal3368 Před 3 lety +1

    hey, guess who I am plus I love your vid Kain.

  • @farang9260
    @farang9260 Před 3 lety +1

    oh so it's only for local or can you run a real website on it aimed to be displayed on internet ?

    • @KianBrose
      @KianBrose  Před 3 lety +1

      This is actually the first in a series of videos where I show how to make an actual website to be displayed on the internet, so this part was the actual server, next is port forwarding, dns etc

    • @farang9260
      @farang9260 Před 3 lety

      @@KianBrose cool can't wait, great content

  • @henlein8954
    @henlein8954 Před rokem +1

    i cant connect filezilla to rasberry pi
    Connection attempt failed with "ECONNREFUSED - Connection refused by server".

    • @KianBrose
      @KianBrose  Před rokem

      Open up the ftp port 21 with ufw

  • @canlucagertz3562
    @canlucagertz3562 Před 10 měsíci

    Does that alao work on a thinkcentre?

    • @KianBrose
      @KianBrose  Před 10 měsíci

      unsure what that is, but if it can run modern linux yes

  • @lucastooker5367
    @lucastooker5367 Před 3 lety +2

    Can you please make a video on raspberry pi game bots? I use a raspberry pi and would like to learn how to use python for bots.

    • @KianBrose
      @KianBrose  Před 3 lety

      Em I mean i guess you could use it to train neural networks that then bot stuff, otherwise i dont really see a way you can bot with it unless you want to make a web crawler or something

  • @mimurajam1501
    @mimurajam1501 Před 3 lety +2

    nice video

  • @vizionthing
    @vizionthing Před 2 lety +1

    Should have edited out the Ubuntu repository addition - you clearly state the instructions are for Debian, or at the very least state the Ubuntu part BEFORE demonstrating the instruction - some of use are following along!
    Other than that, altogether an excellent video, I got a Raspberry Pi Zero W set up on the first run. Thank you.

  • @lbb2rfarangkiinok
    @lbb2rfarangkiinok Před 2 lety +1

    Raspberry the smallest computer in the world? I don't know how the developers of M^3 would feel about that. Great video, tho!

    • @KianBrose
      @KianBrose  Před 2 lety

      Correct, since the raspberry pi is not only a chip, but it has every other component embedded into it as well to make it work as a computer
      Thanks!

    • @lbb2rfarangkiinok
      @lbb2rfarangkiinok Před 2 lety

      @@KianBrose I feel like you mean something else when you say "computer" then. Could you provide me with your definition.

    • @KianBrose
      @KianBrose  Před 2 lety

      @@lbb2rfarangkiinok A set of hardware that has been wired together in such a way that an end-user can utilize it to run an operating system

  • @jsamusicsociety
    @jsamusicsociety Před 2 lety +1

    Could you tell me how can I update my IP automatically at google domains?

    • @KianBrose
      @KianBrose  Před 2 lety

      It's not possible to do it automatically as far as I'm aware

  • @RedaHaskouri
    @RedaHaskouri Před 3 lety +2

    i need to send sms from server ( own server ).. how can do that ?.. i read something like sms gateway .. i dnt know what means that exactly !! can help me brother ! :-(

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Actually I don't know that one, I guess you would have to use a sim card somehow, never really thought about it... but for mails you can just use an smtp server

    • @RedaHaskouri
      @RedaHaskouri Před 3 lety +1

      @@KianBrose what i can install for smtp server ? i need to build my own smtp server. so ? :(

    • @KianBrose
      @KianBrose  Před 3 lety +1

      @@RedaHaskouri personally never made one, can't say for sure sry, i recommend looking it up on google

    • @RedaHaskouri
      @RedaHaskouri Před 3 lety +1

      @@KianBrose i search in google . but i don't understand exactly how! . anyway thanks for all :-(

    • @strange9847
      @strange9847 Před 3 lety

      @@KianBrose you can make videos on smtp server in python. Making own client side and server side in python is really fun.

  • @chi11estpanda
    @chi11estpanda Před 6 měsíci

    03:56 Conceptually, instead of uncommenting then deleting you could have just left it commented right? or was that just to simplify the tutorial and save a few bytes of data?
    Also, for 06:29 Would there be any security concerns with giving pi ownership of /var/www/html as opposed to only giving it write permissions instead if say you do end up opening the server up to the public with port forwarding or not really?

    • @KianBrose
      @KianBrose  Před 6 měsíci

      3:56 well yes, honestly its just a habit to remove things I know I won't use but it wouldn't change anything to leave it as is

    • @KianBrose
      @KianBrose  Před 6 měsíci

      6:29 I'm honestly not very well versed with privilege escalation exploits but just from the back of my mind, if someone hacked into the server and had access to pi they would have access to anything anyways as it's a root user
      Otherwise I'm not really sure

  • @niki-maria
    @niki-maria Před 2 lety +1

    `sudo apt-get upgrade -y` should automatically respond yes while upgrading :)

  • @abdelrahmanwissam1414
    @abdelrahmanwissam1414 Před 3 lety +1

    I know this is dumb, but does this provide a domain name for the website?

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Actually a domain is something entirely different, lets say your ip address is 201.294.28.183
      That would be incredibly difficult for anyone to remember to access the website that that ip is hosting (in this case the host would be yourself and your webserver), so you buy a domain (something.com or .org or . whatever) that just redirects people to that ip address, so it's just made to make ips look pretty

    • @KianBrose
      @KianBrose  Před 3 lety +1

      I'll be doing a video on domains shortly after making one about port forwarding which I finished recording today, just gotta edit it

    • @abdelrahmanwissam1414
      @abdelrahmanwissam1414 Před 3 lety

      @@KianBrose Ohhhh now i understand, thanks.

  • @nexenti3107
    @nexenti3107 Před 3 lety +1

    why not just transfer files over scp or rsync?

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Because this is how websites work

  • @saraswatinautiyal5763
    @saraswatinautiyal5763 Před 2 lety +2

    Can you automate chess using python

  • @danielvelkov116
    @danielvelkov116 Před 2 lety

    They've really made this as brain dead as possible. Love it

  • @NoName-fm6ew
    @NoName-fm6ew Před 3 lety +1

    im waiting for new vids :3

    • @KianBrose
      @KianBrose  Před 3 lety +1

      I'll release one as soon as I'm finished with a test the 15th

  • @lookeper2
    @lookeper2 Před 3 lety +13

    Great tutorial, but how you pronounced nginx tilted me so hard. EngineX😂

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Haha I like calling nginks since it just rolls of the tongue faster, been told it's wrong before, but it seems I'm a bit too used to calling it enginks xD

    • @mark1359
      @mark1359 Před 3 lety

      Same

    • @entx8491
      @entx8491 Před 9 měsíci

      ​@@KianBrosestop calling it that then, I almost closed the tab thinking you have no idea what you're talking about lol

  • @Prophes0r
    @Prophes0r Před 2 lety +1

    Pretty clear instructions. Good job.
    Quick pronunciation corrections though.
    'sudo' is pronounced like the words 'sue do' not 'pesudo'.**
    'nginx' is pronounced like 'Engine X'.
    ** su is the Switch User command. But it is most commonly used to change to root, AKA Super User.
    sudo is literally 'su then do' but the user you switch to is root(Super User) so many(most? all?) think of it as 'Super User Do [command]'

    • @KianBrose
      @KianBrose  Před 2 lety

      Ty! Yeah I got pretty used to just doing sudo -s

    • @Prophes0r
      @Prophes0r Před 2 lety

      @@KianBrose The Engine X one really threw me.
      In my head I always read it 'N G inks'
      Then I heard a developer talk and literally stopped what I was doing when he pronounced it 'Engine X'. Then I looked at the word and thought "Oh shit! That is WAY better!"

    • @KianBrose
      @KianBrose  Před 2 lety

      Yeah, I was told by some friends shortly after release that the way I said it was wrong haha

  • @krissloo143
    @krissloo143 Před 3 lety +1

    It's sad you don't post often :(

    • @KianBrose
      @KianBrose  Před 3 lety +1

      Ik, having some irl issues rn xD

    • @krissloo143
      @krissloo143 Před 3 lety +1

      @@KianBrose Nothing can stop you ma man :)

  • @gijothegamer9299
    @gijothegamer9299 Před 3 lety +1

    How to install aircrack-ng in phone using termux and using that how to hack Wi-Fi password please make a video please please 😭😭

  • @just_biraj
    @just_biraj Před rokem +1

    How to access phpmyadmin

  • @henlein8954
    @henlein8954 Před 10 měsíci

    i place html file but nothing yet

  • @E-dart
    @E-dart Před rokem

    It gives a 403 error

    • @KianBrose
      @KianBrose  Před rokem

      odd, did you perhaps try to access a file in the webserver on (I think) /var/www/http that doesn't exist? this was made a while ago

  • @developersdiary9513
    @developersdiary9513 Před 2 lety +1

    Can anyone shed some lights on me of what I should know in order to host 10 websites and how much traffic my raspberry pi web server can handle?

    • @KianBrose
      @KianBrose  Před 2 lety

      Realistically speaking, about 5000 people per second, and if you have more than 500 per second you might as well get a real server

    • @KianBrose
      @KianBrose  Před 2 lety

      I recommend reading this raspberrypi.stackexchange.com/questions/86019/roughly-how-much-users-could-handle-a-raspberry-pi3b-as-server-for-standard-wor

  • @henlein8954
    @henlein8954 Před 10 měsíci

    kian my website stays showing php

  • @shreeshind8388
    @shreeshind8388 Před 3 lety +1

    I think u can make a 3d game bot😋😋😊

    • @KianBrose
      @KianBrose  Před 3 lety +1

      mmmm not sure how to make those yet, but could look into it for a future video

    • @shreeshind8388
      @shreeshind8388 Před 3 lety

      @@KianBrose OK bro :-)

  • @aog3962
    @aog3962 Před 3 lety +3

    First

  • @gijothegamer9299
    @gijothegamer9299 Před 3 lety +1

    Hacking Wi-Fi password aircrack ng video plz

    • @KianBrose
      @KianBrose  Před 3 lety

      Lol that’s pretty simple, planned in the future as well

    • @subhanshareef939
      @subhanshareef939 Před 3 lety +1

      @@KianBrose We all know its simple but we still want it from you :)

  • @mikeeotool2677
    @mikeeotool2677 Před 2 lety +2

    Kian Brose speech speed sleep = 1000 for each phrase on your tutorials, so you don't speak to fast !

  • @HoundSec
    @HoundSec Před 11 měsíci

    It's pronounced N-gin-X by the way.

  • @AaronEstebanSEO
    @AaronEstebanSEO Před 2 lety +1

    You're pronouncing "NGINX" incorrectly. It's pronounced "engine x".

    • @KianBrose
      @KianBrose  Před 2 lety +1

      Yep I didn't know haha

    • @AaronEstebanSEO
      @AaronEstebanSEO Před 2 lety

      @@KianBrose yeah, I've built web servers and email servers with both LAMP & LEMP stacks on my Raspberry Pi 4, that's why I know how to pronounce it - the experience. Also, NGINX is better than Apache in terms of speed and security.

    • @KianBrose
      @KianBrose  Před 2 lety

      Yeah I think I mentioned nginx being far better in some part of the vid. Also could you elaborate on how you create email servers? I have always tried looking into creating a mail server for my domains for custom mails but failed to do so

  • @thepythoncodez
    @thepythoncodez Před rokem

    nginx is pronounced Engine X

  • @ChargedPulsar
    @ChargedPulsar Před 2 lety +1

    Constantly changing the camera, showing irrelevant items, annoying music in the background. Really? In a tech video.. Someone confused Minecraft with IT.

    • @KianBrose
      @KianBrose  Před 2 lety

      Apologies for the free tutorial

  • @gunterkook3659
    @gunterkook3659 Před 2 lety +1

    filezilla error the web server
    My Public IPv4 domain show website
    the ip 192.168.1.etc show site no available
    the file zilla error are
    Connection attempt failed with "ECONNREFUSED - Connection refused by server".
    Response: 503 Failure of data connection.

    • @KianBrose
      @KianBrose  Před 2 lety

      Hm, you probably do not have FTP configured on the server which allows filezilla to connect to it OR have a firewall issue

    • @gunterkook3659
      @gunterkook3659 Před 2 lety

      @@KianBrose i already disable the firewall on the router and windows 10 do you know the commands on debian or a video or article ?

    • @gunterkook3659
      @gunterkook3659 Před 2 lety

      @@KianBrose some say that is issue with port fowarding

    • @KianBrose
      @KianBrose  Před 2 lety

      @@gunterkook3659 hm, it is possible that you have port 21/22 blocked on the debian device, you could try your luck with the UFW firewall