Stateful vs Stateless Firewalls - You NEED to know the difference

  Рет қаралды 74,859

LearnCantrill

LearnCantrill

Күн бұрын

Пікірлер: 99
@brynjellis
@brynjellis Жыл бұрын
I've looked up this stateless vs stateful subject many times before and nowhere has it been explained better than in this video! Brilliant job, thank you!
@LearnCantrill
@LearnCantrill Жыл бұрын
Glad it was helpful!
@blackie5566
@blackie5566 Жыл бұрын
I second that, one of the best explanations!!! Thank you so much
@siraj-7397
@siraj-7397 Жыл бұрын
As a Networks instructor, I see that this video is helpful and professional. 20/20
@LearnCantrill
@LearnCantrill Жыл бұрын
thanks !! glad you like it.
@Just-Browsing-123
@Just-Browsing-123 10 ай бұрын
I've been in network security for sometime now, and this is one of the best ways I've seen this explained. Great work!
@hosnibounechada7547
@hosnibounechada7547 28 күн бұрын
Stumbling upon your channel feels like discovering a true treasure trove of IT knowledge on KZbin. I can only imagine the immense effort and dedication it takes to create such high-quality content. Thank you so much for sharing your expertise!
@seetsamolapo5600
@seetsamolapo5600 Жыл бұрын
- When you make a connection using TCP each side is sending IP packets to each other. TCP is layer 4 protocol which runs on top of IP and adds error correction and ports. - Each connection by a user via client to an application on a server consists of two parts- the request (initiation) and the response which are two parts of the same interaction - client picks a temporary (ephemeral) port as its source which has a value between 1024 and 65536. Then the client initiates a connection to the server using a well known destination port 443 - https. Well known ports are associated with popular applications. This is the request part. The client asking for something from the server. - Next the server responds with some type of data. The server connects to the source IPof the request which is the clien. It connects to the client's port which is an ephemeral port. This is the response part. It is from the server on that well known port 443 to the client on the ephemeral port chosen by the client - It is is this values that uniquely identify a connection - source Ip and source port, and destination IP and destination port. - Each interaction/connection comprises of a request part and response component. The directionality of the transmission depends on the node's perspective. The direction of a request or response isnt always outbound or inbound. There are outgoing requests, outgoing responses, incoming requests and incoming responses. Some servers can have all, like web servers, where the both initiate and accept connections. For every connection start with the request and the response will be the inverse - When the client initiates a request, packets are sent to the server with a source IP and source port of the client and destination IP and destination port of the server. This request is an outbound request from the client perspective and an inbound request from the server perspective - Firewalls require consideration of perspective - directionality when defining rules for connections. The response is always inverse direction to the request - source IP, source port and destination IP and destination port switch. - Stateless firewalls see the request and response as separate activities. Allowing or denying them is done individually so there are two separate rules required one for the request and another for the response. Therefore more management overhead with more rules required per connection - The request component is always going to be to a well know port. The response is always going to be from a server to a client going to a random ephemeral port chosen by the client's OS. And because the firewall is stateless it has no way of knowing which specific port the response is destined for. Therefore in the firewall rules traffic in the full range of ephemeral ports must be allowed which isn't ideal for security engineers. - Stateful firewalls are intelligent enough to identify the response component from it's request component. By comparing the ports and IP of the request and response and if they're the same it can link them to each other. Therefore, for a specific request the stateful firewall automatically knows which data is the response and automatically allows it. Therefore only one rule required for stateful firewalls which is for allowing/denying the request and the response is automatically allowed/denied significantly reducing admin overhead. In addition there's no need to allow traffic for the entire ephemeral port range as the firewall knows the specific ephemeral port for the connection
@learnwell6091
@learnwell6091 5 ай бұрын
The last two minutes were pure gold. But to reach it, you have to dig through the first 12 minutes!!
@salkeldeliaoe
@salkeldeliaoe 2 жыл бұрын
Brilliant video, broken down each and every part very detailed and straight to the point.
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad you liked it.
@vladislavkaras491
@vladislavkaras491 5 ай бұрын
The prehistory you made before explaining actual firewalls is brilliant! Thanks for the video!
@Work-wj8wv
@Work-wj8wv Жыл бұрын
video starts at 8:20 if you already know the basics of what a firewall is.
@TopYoutubeComments
@TopYoutubeComments 2 жыл бұрын
Thanks for the amazing work you're putting in !
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad you enjoy it!
@Gsfkdhkjhgfs
@Gsfkdhkjhgfs Жыл бұрын
Very clear explanation and incredibly helpful. One thing that still confuses me is the ‘overhead’ part which you say is lower on stateful firewalls. Since they record the state of a connection whereas a stateless firewall doesn’t; it’s more intuitive for me to say that a stateless firewall therefore needs less memory and has less overhead as a consequence. But I’m probably mistaken one concept for the other.
@LearnCantrill
@LearnCantrill Жыл бұрын
no you are correct.
@sfletcherjones
@sfletcherjones Жыл бұрын
Thanks
@LearnCantrill
@LearnCantrill Жыл бұрын
thank you !! :)
@yasarhussain1398
@yasarhussain1398 Ай бұрын
Great video, I'm studying for the Network+ and this was really helpful, thank you.
@Messi_Goat20
@Messi_Goat20 Ай бұрын
very well explained😀
@ischozar7465
@ischozar7465 Жыл бұрын
Good slides, good explanations, good video. Thanks for making me smarter.
@LearnCantrill
@LearnCantrill Жыл бұрын
glad it helps :)
@ShrutiSharma-xu6qs
@ShrutiSharma-xu6qs Жыл бұрын
Best explanation ever. Clarity pro max!
@danilomendes2991
@danilomendes2991 2 жыл бұрын
What a great explanation! Great job!!
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thanks Danilo :) please like, share and subscribe (*shudders at sounding like a youtuber*)
@chuckbalogh296
@chuckbalogh296 2 жыл бұрын
Excellent video and explanation. You have cleared up so many topics for me.
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad it was helpful!
@shitshow_1
@shitshow_1 9 ай бұрын
Well articulately explained. Also quickly refreshed some of the Network layer concepts before diving into the topic, this is something I always wanted.
@jonathantx
@jonathantx 7 ай бұрын
Excellent Explanation, I'm still learning a lot but this is spot on and really breaks it down for me to understand. Thank you.
@Kumararpit44
@Kumararpit44 7 ай бұрын
Literally, brilliant way to teach. Thanks ❤
@WoutiecomNL
@WoutiecomNL 2 жыл бұрын
Great animation and explanation. Thanks!
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad it was helpful!
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thanks :) glad it helped.
@Enzo-sp3bf
@Enzo-sp3bf 8 ай бұрын
Oh this explaination is excellent and helps a lot
@deepshah737
@deepshah737 7 ай бұрын
what a fantastic explanation along with slides. Thank u very much
@lonefloppa
@lonefloppa 11 ай бұрын
Great Video understandable.You are doing well at teaching
@brunomarques8070
@brunomarques8070 Жыл бұрын
Very simple explanation. Thank you!
@LearnCantrill
@LearnCantrill Жыл бұрын
Glad it was helpful!
@00infinity39
@00infinity39 11 ай бұрын
This is video is 10/10 🎉🎉 appreciate the effort ❤ U got a new sub
@franciscojosegalan3135
@franciscojosegalan3135 2 жыл бұрын
Great job, very educational!
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thanks !!! glad you find it valuable.
@greenpixel_
@greenpixel_ 8 ай бұрын
Fantastic explanation!
@Gestr3482
@Gestr3482 Жыл бұрын
Very good explanation
@whatshatnin4572
@whatshatnin4572 7 ай бұрын
Hey There. Im taking your AWS Solutions Architect - Professional course. It has been a great experience. I am stuck on one demo because I need to increase my vCPU limit to create an EC2. Currently my vCPU limit is 8. How do I increase it and how much should i increase it
@robertalvarez6906
@robertalvarez6906 10 ай бұрын
Excellent! Would you be able to point me to the "next video" that helps explain AWS State/Stateless that you mentioned?
@brynjellis
@brynjellis 5 ай бұрын
Yes, I was looking for this too. @LearnCantrill, could you point us in the right direction please?
@jayydon
@jayydon 7 ай бұрын
Great video, subscribed and liked. Just curious wouldn't modern systems only use the ranges of 49152 to 65535 as their ephemeral ports?
@mmmm-gs4mc
@mmmm-gs4mc 5 ай бұрын
The explanation was hell stateful, Thanks Bro
@MegaNatebreezy
@MegaNatebreezy Жыл бұрын
Great video! I am looking to block inbound SMB port 445 across Windows workstations in my environment. If I leave workstations with the ability to make an outbound SMB connection to a printer server and allow the print/file server inbound SMB allow access, will the computers still be able to communicate with the server back and forth (outbound + inbound) even though there is a deny rule on incoming SMB connections? How will the Firewall know which to choose since the rules are almost conflicting, is it going to choose the automatic deny?
@gangisandeepreddy
@gangisandeepreddy 2 жыл бұрын
I think AWS security group acts like a Stateful firewall? Am I correct?
@LearnCantrill
@LearnCantrill 2 жыл бұрын
correct !! , with some additional enhancements ... since security groups can reference other security groups and themselves :)
@gomsg2049
@gomsg2049 Жыл бұрын
well explained..thanks a lot!
@kodak9521
@kodak9521 2 жыл бұрын
Thanks again for the great video 😀😀😀
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thanks for watching!
@TheNitesh101
@TheNitesh101 Жыл бұрын
Nice articulated 😊
@LearnCantrill
@LearnCantrill Жыл бұрын
Thanks! 🙂
@Salty_Matter
@Salty_Matter 6 ай бұрын
Amazing explanation. Just amazing
@xtoefield
@xtoefield Жыл бұрын
holy hell!! this ws explained very well. subbed!!
@LearnCantrill
@LearnCantrill Жыл бұрын
thanks, glad you like it.
@miguelpimentel1155
@miguelpimentel1155 Жыл бұрын
Wow, super explained recommended
@LearnCantrill
@LearnCantrill Жыл бұрын
Glad you liked it
@NostalgistGuy
@NostalgistGuy Жыл бұрын
one of the best. thanks
@LearnCantrill
@LearnCantrill Жыл бұрын
Glad you like it!
@A.Sandeep-18
@A.Sandeep-18 5 ай бұрын
Brilliant 👍
@ggin2008
@ggin2008 Жыл бұрын
super helpful. Thanks for this. What do you use to create these diagrams? If you don't mind sharing.
@LearnCantrill
@LearnCantrill Жыл бұрын
it's not one single tool ... it would be a whole set of videos itself to show how to create them.
@ggin2008
@ggin2008 Жыл бұрын
@@LearnCantrill I can imagine. they are very good and it would awesome if you could demonstrate it some day. thank you so much for all the work you do. really helpful and high quality content.
@sfletcherjones
@sfletcherjones Жыл бұрын
Very well explained video and excellently well illustrated to boot - I would say one thing and thats the use of the ephemeral port numbers which are the same as the IP of the target which threw me for a second as confusing but maybe might mislead others into thinking the port number somehow defaults to the IP of the target which it wouldnt i suspect? Loved the video as my go to explainer for people and myself when i have to jog the grey matter.
@LearnCantrill
@LearnCantrill Жыл бұрын
that's not a bad idea actually.. i might tweak that in the next version. Thanks.
@kingtop171
@kingtop171 10 ай бұрын
It’d be a crime to follow, like and comment. Thank you for a Job well done!
@rahulpurimetla1152
@rahulpurimetla1152 2 жыл бұрын
Super presentation
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thank you
@silverbell6160
@silverbell6160 2 жыл бұрын
Excellent, thank you
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad it helped
@Rgroose
@Rgroose Жыл бұрын
great, thanks
@LearnCantrill
@LearnCantrill Жыл бұрын
Glad you liked it!
@omribenhur6954
@omribenhur6954 2 жыл бұрын
you are the man baruch hashem
@LearnCantrill
@LearnCantrill 2 жыл бұрын
glad you like :)
@jesiotra6246
@jesiotra6246 2 жыл бұрын
great video!
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Thanks!
@DrDoktor60
@DrDoktor60 Жыл бұрын
Satisfactory ❤
@kimshatteen222
@kimshatteen222 2 жыл бұрын
Thank you
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Glad you like.
@jiho1960
@jiho1960 Жыл бұрын
Legend!
@LearnCantrill
@LearnCantrill Жыл бұрын
thanks, glad you like.
@danielc4698
@danielc4698 Жыл бұрын
good video, but to put it clearer , if the packet go to the router, INBOUND, if they leave OUTBOUND. it is the perspective of the router.
@LearnCantrill
@LearnCantrill Жыл бұрын
how is that clearer? you've just used a router vs a client/server ?
@TheMbudzeni
@TheMbudzeni 2 жыл бұрын
Then why would people opt to use stateless firewalls instead of stateful firewalls?
@LearnCantrill
@LearnCantrill 2 жыл бұрын
in most cases you wouldn't - it's an older tech. it gives you a little more control .. you can control both sides of traffic flow.
@mdgm88
@mdgm88 2 жыл бұрын
With AWS security groups (stateful) apply to things like instances (e.g. EC2, RDS) and ELB. NACL (stateless) apply at the subnet level. You’d probably always use security groups where you can, and use NACL in addition if you need a bit of extra control e.g. to block all pings to a subnet.
@akashagarwal6390
@akashagarwal6390 Жыл бұрын
Nobody does it better...
@devwebj7686
@devwebj7686 2 жыл бұрын
waiting for layer 6 and 7
@LearnCantrill
@LearnCantrill 2 жыл бұрын
Stay tuned.
@c.s1055
@c.s1055 8 ай бұрын
❤❤❤
@dextruded6020
@dextruded6020 2 ай бұрын
"HAYCH TAYEE CAYEEE PAYEE"
@priyankamahesh6944
@priyankamahesh6944 2 жыл бұрын
WTF 😳 my brain exploded , couldn’t understand anything. Pls simplify next time.
@LearnCantrill
@LearnCantrill 2 жыл бұрын
This is the simplified version. But there is other stuff you need to understand first. Maybe check out my networking fundamentals series.
@c.s1055
@c.s1055 8 ай бұрын
Me too
What is Border Gateway Protocol  (BGP)?
17:30
LearnCantrill
Рет қаралды 15 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Stateful vs Stateless Applications (Explained by Example)
14:44
Hussein Nasser
Рет қаралды 202 М.
Stateful vs Stateless Architectures Explained
4:13
Hayk Simonyan
Рет қаралды 33 М.
What is a Firewall? | Traditional + Next Generation
8:31
CertBros
Рет қаралды 106 М.
Stateful vs Stateless Architecture - System Design Basics
8:47
Cloud Advocate
Рет қаралды 112 М.
IP Sec VPN Fundamentals
14:55
LearnCantrill
Рет қаралды 194 М.
Proxy vs Reverse Proxy vs Load Balancer | Simply Explained
13:19
TechWorld with Nana
Рет қаралды 254 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН