Why is it called a stateful and a stateless firewall?What are the risks associated with relying on IPSec IP Filtering?How do experienced users test stateful firewall?HTTPS firewall ruleMixing stateless and stateful firewall rulesSecurity risk of allowing ICMP “destination unreachable” packets on AWSUnderstanding OpenWRT LuCI Firewall Routing with VPNThe workings of a stateful firewallStateful vs Stateless *host* firewall - is there any advantage?How application-level stateful firewall impacts network performanceDifference between stateful and stateless firewall filters
Would it be unbalanced to increase a druid's number of uses of Wild Shape based on level?
Why is belonging not transitive?
Test to know when to use GLM over Linear Regression?
Make 2019 with single digits
Meaning of Swimming their horses
Building Truncatable Primes using Nest(List), While, Fold
Why is the car dealer insisting on a loan instead of cash?
Read string of any length in C
What is the meaning of 「ぞんぞん」?
How can I say "I want to" as a short response, omitting the main verb?
Difference between system uptime and last boot time in windows
What is this gigantic dish at Ben Gurion airport?
How would you control supersoldiers in a late iron-age society?
Block diagram vs flow chart?
Wrong Schengen Visa exit stamp on my passport, who can I complain to?
How to control the output voltage of a solid state relay
Insight into cavity resonators
Is there any way to land a rover on the Moon without using any thrusters?
How to make a bold sparkline in Google Sheets?
How to be sure services and researches offered by the University are not becoming cases of unfair competition?
Why is this sentence grammatical?
Can I travel to European countries with the Irish passport and without destination Visa?
What's the benefit of prohibiting the use of techniques/language constructs that have not been taught?
How To Make Earth's Oceans as Brackish as Lyr's
Why is it called a stateful and a stateless firewall?
What are the risks associated with relying on IPSec IP Filtering?How do experienced users test stateful firewall?HTTPS firewall ruleMixing stateless and stateful firewall rulesSecurity risk of allowing ICMP “destination unreachable” packets on AWSUnderstanding OpenWRT LuCI Firewall Routing with VPNThe workings of a stateful firewallStateful vs Stateless *host* firewall - is there any advantage?How application-level stateful firewall impacts network performanceDifference between stateful and stateless firewall filters
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm just wondering about the naming of these firewall behaviours. My basic understanding is that stateful filtering lets inbound traffic to return the outbound response without explicitly specifying the rule, whereas stateless requires that outbound rule to be specified.
I don't get it. Why is requiring explicit rules called stateless and the other called stateful?
network firewalls
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
I'm just wondering about the naming of these firewall behaviours. My basic understanding is that stateful filtering lets inbound traffic to return the outbound response without explicitly specifying the rule, whereas stateless requires that outbound rule to be specified.
I don't get it. Why is requiring explicit rules called stateless and the other called stateful?
network firewalls
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago
add a comment
|
I'm just wondering about the naming of these firewall behaviours. My basic understanding is that stateful filtering lets inbound traffic to return the outbound response without explicitly specifying the rule, whereas stateless requires that outbound rule to be specified.
I don't get it. Why is requiring explicit rules called stateless and the other called stateful?
network firewalls
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm just wondering about the naming of these firewall behaviours. My basic understanding is that stateful filtering lets inbound traffic to return the outbound response without explicitly specifying the rule, whereas stateless requires that outbound rule to be specified.
I don't get it. Why is requiring explicit rules called stateless and the other called stateful?
network firewalls
network firewalls
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 33 mins ago
Peter Mortensen
7404 silver badges9 bronze badges
7404 silver badges9 bronze badges
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
kickpuncher11kickpuncher11
432 bronze badges
432 bronze badges
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
kickpuncher11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago
add a comment
|
1
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago
1
1
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago
add a comment
|
3 Answers
3
active
oldest
votes
You are almost correct. But state-full inspection allows you to have more control above data streams going through the firewall.
From this page: https://www.cybrary.it/0p3n/stateful-vs-stateless-firewalls/
Stateless firewalls watch network traffic and restrict or block packets based on source and destination addresses or other static values. They’re not ‘aware’ of traffic patterns or data flows. A stateless firewall uses simple rule-sets that do not account for the possibility that a packet might be received by the firewall ‘pretending’ to be something you asked for.
A stateless firewall filter, also known as an access control list (ACL), does not statefully inspect traffic. Instead, it evaluates packet contents statically and does not keep track of the state of network connections.
Stateful firewalls can watch traffic streams from end to end. They are aware of communication paths and can implement various IP Security (IPsec) functions such as tunnels and encryption. In technical terms, this means that stateful firewalls can tell what stage a TCP connection is in (open, open sent, synchronized, synchronization acknowledge or established). It can tell if the MTU has changed and whether packets have fragmented. etc.
EDIT:
They are named as such because they are really doing what the name means.
Stateless: "don't remember any state, just filter the current packet passing through according to the rule list.
Stateful: remember the state of the data stream passed through (what happened in all previous packets) and filter based on the same list as in case of state less, but filter also based on state information.
The state information stored in the firewall memory allows you to do exactly what you asked before and much more.
You can add a rule that allows passing of the new incoming TCP connection inside (TCP packet marked with a SYN flag) and all established / related traffic inside / outside.
In case of TCP, the client (SRC IP/SRC PORT) sends SYN packet to the server (DST IP/DST PORT) to open the TCP connection. Firewall has a rule that this packet can pass (only new TCP connections to that server). Firewall now remembers the request to open the connection was sent to server (it remembers out of others src IP, src port, dst IP, dst port and state of the connection - in this case CONNECT) and now expects only SYN/ACK packet from server side. No other packets of this concrete TCP connection can pass through it (in both directions). Server then sends SYN/ACK, firewall remembers HALF-OPEN state and expects only ACK flagged packet from client. Once the client sends ACK, the state of the connection is changed to CONNECTED and only packets with flag ACK (data) FIN/ACK (close connection) can pass through now. The same is happening during the connection closing procedure - so it is possible to have complete control above the protocol passing through and filter out invalid packets.
For TCP its bit hard to explain and understand. ICMP is much better. There are two basic ICMP packets - ECHO and REPLY.
In case of statefull firewall you can ensure that REPLY can pass the firewall only in case the ECHO was previously sent.
In case of stateless it is possible only to control if ECHO and REPLY can pass through so the server can send REPLY anytime even if it was not asked for it.
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
add a comment
|
Stateless means to make a decision (drop, accept, ...) solely based on a single packet without any further context. Stateful means to maintain some context information based on previous packets and include it when deciding on what to do with a packet.
This context is about previously established connections (i.e. "real" connections like in TCP or connection-like associations as in UDP). The stored state of a connection includes source and destination IP and ports, time of last activity (for timing out states) and in case of TCP also the current sequence numbers. It gets updated when new packets matching the current state arrive. It gets removed if the connections gets explicitly closed (TCP FIN handshake) or implicitly closed (idle timeout).
Keeping such state makes it possible to match packets belonging to established connections. This allows to easily allow traffic matching connections previously initiated from inside a trusted network but to deny any connections initiated from the untrusted outside. This makes firewall configurations both simpler and more secure but at the cost of increased memory usage (for the states) and reduced performance (due to the time needed for state lookup).
add a comment
|
Stateful firewall - A Stateful firewall is aware of the connections that pass through it. It adds and maintains information about a user's connections in a state table, referred to as a connection table. It then uses this connection table to implement the security policies for users connections. An example of the stateful firewall is PIX, ASA, Checkpoint.
Stateless firewalls - (Packet Filtering) Stateless firewalls, on the other hand, does not look at the state of connections but just at the packets themselves. An example of a packet filtering firewall is the Extended Access Control Lists on Cisco IOS Routers.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "162"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
kickpuncher11 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsecurity.stackexchange.com%2fquestions%2f218002%2fwhy-is-it-called-a-stateful-and-a-stateless-firewall%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are almost correct. But state-full inspection allows you to have more control above data streams going through the firewall.
From this page: https://www.cybrary.it/0p3n/stateful-vs-stateless-firewalls/
Stateless firewalls watch network traffic and restrict or block packets based on source and destination addresses or other static values. They’re not ‘aware’ of traffic patterns or data flows. A stateless firewall uses simple rule-sets that do not account for the possibility that a packet might be received by the firewall ‘pretending’ to be something you asked for.
A stateless firewall filter, also known as an access control list (ACL), does not statefully inspect traffic. Instead, it evaluates packet contents statically and does not keep track of the state of network connections.
Stateful firewalls can watch traffic streams from end to end. They are aware of communication paths and can implement various IP Security (IPsec) functions such as tunnels and encryption. In technical terms, this means that stateful firewalls can tell what stage a TCP connection is in (open, open sent, synchronized, synchronization acknowledge or established). It can tell if the MTU has changed and whether packets have fragmented. etc.
EDIT:
They are named as such because they are really doing what the name means.
Stateless: "don't remember any state, just filter the current packet passing through according to the rule list.
Stateful: remember the state of the data stream passed through (what happened in all previous packets) and filter based on the same list as in case of state less, but filter also based on state information.
The state information stored in the firewall memory allows you to do exactly what you asked before and much more.
You can add a rule that allows passing of the new incoming TCP connection inside (TCP packet marked with a SYN flag) and all established / related traffic inside / outside.
In case of TCP, the client (SRC IP/SRC PORT) sends SYN packet to the server (DST IP/DST PORT) to open the TCP connection. Firewall has a rule that this packet can pass (only new TCP connections to that server). Firewall now remembers the request to open the connection was sent to server (it remembers out of others src IP, src port, dst IP, dst port and state of the connection - in this case CONNECT) and now expects only SYN/ACK packet from server side. No other packets of this concrete TCP connection can pass through it (in both directions). Server then sends SYN/ACK, firewall remembers HALF-OPEN state and expects only ACK flagged packet from client. Once the client sends ACK, the state of the connection is changed to CONNECTED and only packets with flag ACK (data) FIN/ACK (close connection) can pass through now. The same is happening during the connection closing procedure - so it is possible to have complete control above the protocol passing through and filter out invalid packets.
For TCP its bit hard to explain and understand. ICMP is much better. There are two basic ICMP packets - ECHO and REPLY.
In case of statefull firewall you can ensure that REPLY can pass the firewall only in case the ECHO was previously sent.
In case of stateless it is possible only to control if ECHO and REPLY can pass through so the server can send REPLY anytime even if it was not asked for it.
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
add a comment
|
You are almost correct. But state-full inspection allows you to have more control above data streams going through the firewall.
From this page: https://www.cybrary.it/0p3n/stateful-vs-stateless-firewalls/
Stateless firewalls watch network traffic and restrict or block packets based on source and destination addresses or other static values. They’re not ‘aware’ of traffic patterns or data flows. A stateless firewall uses simple rule-sets that do not account for the possibility that a packet might be received by the firewall ‘pretending’ to be something you asked for.
A stateless firewall filter, also known as an access control list (ACL), does not statefully inspect traffic. Instead, it evaluates packet contents statically and does not keep track of the state of network connections.
Stateful firewalls can watch traffic streams from end to end. They are aware of communication paths and can implement various IP Security (IPsec) functions such as tunnels and encryption. In technical terms, this means that stateful firewalls can tell what stage a TCP connection is in (open, open sent, synchronized, synchronization acknowledge or established). It can tell if the MTU has changed and whether packets have fragmented. etc.
EDIT:
They are named as such because they are really doing what the name means.
Stateless: "don't remember any state, just filter the current packet passing through according to the rule list.
Stateful: remember the state of the data stream passed through (what happened in all previous packets) and filter based on the same list as in case of state less, but filter also based on state information.
The state information stored in the firewall memory allows you to do exactly what you asked before and much more.
You can add a rule that allows passing of the new incoming TCP connection inside (TCP packet marked with a SYN flag) and all established / related traffic inside / outside.
In case of TCP, the client (SRC IP/SRC PORT) sends SYN packet to the server (DST IP/DST PORT) to open the TCP connection. Firewall has a rule that this packet can pass (only new TCP connections to that server). Firewall now remembers the request to open the connection was sent to server (it remembers out of others src IP, src port, dst IP, dst port and state of the connection - in this case CONNECT) and now expects only SYN/ACK packet from server side. No other packets of this concrete TCP connection can pass through it (in both directions). Server then sends SYN/ACK, firewall remembers HALF-OPEN state and expects only ACK flagged packet from client. Once the client sends ACK, the state of the connection is changed to CONNECTED and only packets with flag ACK (data) FIN/ACK (close connection) can pass through now. The same is happening during the connection closing procedure - so it is possible to have complete control above the protocol passing through and filter out invalid packets.
For TCP its bit hard to explain and understand. ICMP is much better. There are two basic ICMP packets - ECHO and REPLY.
In case of statefull firewall you can ensure that REPLY can pass the firewall only in case the ECHO was previously sent.
In case of stateless it is possible only to control if ECHO and REPLY can pass through so the server can send REPLY anytime even if it was not asked for it.
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
add a comment
|
You are almost correct. But state-full inspection allows you to have more control above data streams going through the firewall.
From this page: https://www.cybrary.it/0p3n/stateful-vs-stateless-firewalls/
Stateless firewalls watch network traffic and restrict or block packets based on source and destination addresses or other static values. They’re not ‘aware’ of traffic patterns or data flows. A stateless firewall uses simple rule-sets that do not account for the possibility that a packet might be received by the firewall ‘pretending’ to be something you asked for.
A stateless firewall filter, also known as an access control list (ACL), does not statefully inspect traffic. Instead, it evaluates packet contents statically and does not keep track of the state of network connections.
Stateful firewalls can watch traffic streams from end to end. They are aware of communication paths and can implement various IP Security (IPsec) functions such as tunnels and encryption. In technical terms, this means that stateful firewalls can tell what stage a TCP connection is in (open, open sent, synchronized, synchronization acknowledge or established). It can tell if the MTU has changed and whether packets have fragmented. etc.
EDIT:
They are named as such because they are really doing what the name means.
Stateless: "don't remember any state, just filter the current packet passing through according to the rule list.
Stateful: remember the state of the data stream passed through (what happened in all previous packets) and filter based on the same list as in case of state less, but filter also based on state information.
The state information stored in the firewall memory allows you to do exactly what you asked before and much more.
You can add a rule that allows passing of the new incoming TCP connection inside (TCP packet marked with a SYN flag) and all established / related traffic inside / outside.
In case of TCP, the client (SRC IP/SRC PORT) sends SYN packet to the server (DST IP/DST PORT) to open the TCP connection. Firewall has a rule that this packet can pass (only new TCP connections to that server). Firewall now remembers the request to open the connection was sent to server (it remembers out of others src IP, src port, dst IP, dst port and state of the connection - in this case CONNECT) and now expects only SYN/ACK packet from server side. No other packets of this concrete TCP connection can pass through it (in both directions). Server then sends SYN/ACK, firewall remembers HALF-OPEN state and expects only ACK flagged packet from client. Once the client sends ACK, the state of the connection is changed to CONNECTED and only packets with flag ACK (data) FIN/ACK (close connection) can pass through now. The same is happening during the connection closing procedure - so it is possible to have complete control above the protocol passing through and filter out invalid packets.
For TCP its bit hard to explain and understand. ICMP is much better. There are two basic ICMP packets - ECHO and REPLY.
In case of statefull firewall you can ensure that REPLY can pass the firewall only in case the ECHO was previously sent.
In case of stateless it is possible only to control if ECHO and REPLY can pass through so the server can send REPLY anytime even if it was not asked for it.
You are almost correct. But state-full inspection allows you to have more control above data streams going through the firewall.
From this page: https://www.cybrary.it/0p3n/stateful-vs-stateless-firewalls/
Stateless firewalls watch network traffic and restrict or block packets based on source and destination addresses or other static values. They’re not ‘aware’ of traffic patterns or data flows. A stateless firewall uses simple rule-sets that do not account for the possibility that a packet might be received by the firewall ‘pretending’ to be something you asked for.
A stateless firewall filter, also known as an access control list (ACL), does not statefully inspect traffic. Instead, it evaluates packet contents statically and does not keep track of the state of network connections.
Stateful firewalls can watch traffic streams from end to end. They are aware of communication paths and can implement various IP Security (IPsec) functions such as tunnels and encryption. In technical terms, this means that stateful firewalls can tell what stage a TCP connection is in (open, open sent, synchronized, synchronization acknowledge or established). It can tell if the MTU has changed and whether packets have fragmented. etc.
EDIT:
They are named as such because they are really doing what the name means.
Stateless: "don't remember any state, just filter the current packet passing through according to the rule list.
Stateful: remember the state of the data stream passed through (what happened in all previous packets) and filter based on the same list as in case of state less, but filter also based on state information.
The state information stored in the firewall memory allows you to do exactly what you asked before and much more.
You can add a rule that allows passing of the new incoming TCP connection inside (TCP packet marked with a SYN flag) and all established / related traffic inside / outside.
In case of TCP, the client (SRC IP/SRC PORT) sends SYN packet to the server (DST IP/DST PORT) to open the TCP connection. Firewall has a rule that this packet can pass (only new TCP connections to that server). Firewall now remembers the request to open the connection was sent to server (it remembers out of others src IP, src port, dst IP, dst port and state of the connection - in this case CONNECT) and now expects only SYN/ACK packet from server side. No other packets of this concrete TCP connection can pass through it (in both directions). Server then sends SYN/ACK, firewall remembers HALF-OPEN state and expects only ACK flagged packet from client. Once the client sends ACK, the state of the connection is changed to CONNECTED and only packets with flag ACK (data) FIN/ACK (close connection) can pass through now. The same is happening during the connection closing procedure - so it is possible to have complete control above the protocol passing through and filter out invalid packets.
For TCP its bit hard to explain and understand. ICMP is much better. There are two basic ICMP packets - ECHO and REPLY.
In case of statefull firewall you can ensure that REPLY can pass the firewall only in case the ECHO was previously sent.
In case of stateless it is possible only to control if ECHO and REPLY can pass through so the server can send REPLY anytime even if it was not asked for it.
edited 1 hour ago
answered yesterday
FisFis
8843 silver badges10 bronze badges
8843 silver badges10 bronze badges
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
add a comment
|
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
Can you pare this answer down a bit? I'm specifically just wondering why they're named as such, not what the differences between them are. There's other questions that already answer that
– kickpuncher11
yesterday
see my edit above
– Fis
yesterday
see my edit above
– Fis
yesterday
add a comment
|
Stateless means to make a decision (drop, accept, ...) solely based on a single packet without any further context. Stateful means to maintain some context information based on previous packets and include it when deciding on what to do with a packet.
This context is about previously established connections (i.e. "real" connections like in TCP or connection-like associations as in UDP). The stored state of a connection includes source and destination IP and ports, time of last activity (for timing out states) and in case of TCP also the current sequence numbers. It gets updated when new packets matching the current state arrive. It gets removed if the connections gets explicitly closed (TCP FIN handshake) or implicitly closed (idle timeout).
Keeping such state makes it possible to match packets belonging to established connections. This allows to easily allow traffic matching connections previously initiated from inside a trusted network but to deny any connections initiated from the untrusted outside. This makes firewall configurations both simpler and more secure but at the cost of increased memory usage (for the states) and reduced performance (due to the time needed for state lookup).
add a comment
|
Stateless means to make a decision (drop, accept, ...) solely based on a single packet without any further context. Stateful means to maintain some context information based on previous packets and include it when deciding on what to do with a packet.
This context is about previously established connections (i.e. "real" connections like in TCP or connection-like associations as in UDP). The stored state of a connection includes source and destination IP and ports, time of last activity (for timing out states) and in case of TCP also the current sequence numbers. It gets updated when new packets matching the current state arrive. It gets removed if the connections gets explicitly closed (TCP FIN handshake) or implicitly closed (idle timeout).
Keeping such state makes it possible to match packets belonging to established connections. This allows to easily allow traffic matching connections previously initiated from inside a trusted network but to deny any connections initiated from the untrusted outside. This makes firewall configurations both simpler and more secure but at the cost of increased memory usage (for the states) and reduced performance (due to the time needed for state lookup).
add a comment
|
Stateless means to make a decision (drop, accept, ...) solely based on a single packet without any further context. Stateful means to maintain some context information based on previous packets and include it when deciding on what to do with a packet.
This context is about previously established connections (i.e. "real" connections like in TCP or connection-like associations as in UDP). The stored state of a connection includes source and destination IP and ports, time of last activity (for timing out states) and in case of TCP also the current sequence numbers. It gets updated when new packets matching the current state arrive. It gets removed if the connections gets explicitly closed (TCP FIN handshake) or implicitly closed (idle timeout).
Keeping such state makes it possible to match packets belonging to established connections. This allows to easily allow traffic matching connections previously initiated from inside a trusted network but to deny any connections initiated from the untrusted outside. This makes firewall configurations both simpler and more secure but at the cost of increased memory usage (for the states) and reduced performance (due to the time needed for state lookup).
Stateless means to make a decision (drop, accept, ...) solely based on a single packet without any further context. Stateful means to maintain some context information based on previous packets and include it when deciding on what to do with a packet.
This context is about previously established connections (i.e. "real" connections like in TCP or connection-like associations as in UDP). The stored state of a connection includes source and destination IP and ports, time of last activity (for timing out states) and in case of TCP also the current sequence numbers. It gets updated when new packets matching the current state arrive. It gets removed if the connections gets explicitly closed (TCP FIN handshake) or implicitly closed (idle timeout).
Keeping such state makes it possible to match packets belonging to established connections. This allows to easily allow traffic matching connections previously initiated from inside a trusted network but to deny any connections initiated from the untrusted outside. This makes firewall configurations both simpler and more secure but at the cost of increased memory usage (for the states) and reduced performance (due to the time needed for state lookup).
edited yesterday
answered yesterday
Steffen UllrichSteffen Ullrich
130k17 gold badges235 silver badges300 bronze badges
130k17 gold badges235 silver badges300 bronze badges
add a comment
|
add a comment
|
Stateful firewall - A Stateful firewall is aware of the connections that pass through it. It adds and maintains information about a user's connections in a state table, referred to as a connection table. It then uses this connection table to implement the security policies for users connections. An example of the stateful firewall is PIX, ASA, Checkpoint.
Stateless firewalls - (Packet Filtering) Stateless firewalls, on the other hand, does not look at the state of connections but just at the packets themselves. An example of a packet filtering firewall is the Extended Access Control Lists on Cisco IOS Routers.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
Stateful firewall - A Stateful firewall is aware of the connections that pass through it. It adds and maintains information about a user's connections in a state table, referred to as a connection table. It then uses this connection table to implement the security policies for users connections. An example of the stateful firewall is PIX, ASA, Checkpoint.
Stateless firewalls - (Packet Filtering) Stateless firewalls, on the other hand, does not look at the state of connections but just at the packets themselves. An example of a packet filtering firewall is the Extended Access Control Lists on Cisco IOS Routers.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
Stateful firewall - A Stateful firewall is aware of the connections that pass through it. It adds and maintains information about a user's connections in a state table, referred to as a connection table. It then uses this connection table to implement the security policies for users connections. An example of the stateful firewall is PIX, ASA, Checkpoint.
Stateless firewalls - (Packet Filtering) Stateless firewalls, on the other hand, does not look at the state of connections but just at the packets themselves. An example of a packet filtering firewall is the Extended Access Control Lists on Cisco IOS Routers.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Stateful firewall - A Stateful firewall is aware of the connections that pass through it. It adds and maintains information about a user's connections in a state table, referred to as a connection table. It then uses this connection table to implement the security policies for users connections. An example of the stateful firewall is PIX, ASA, Checkpoint.
Stateless firewalls - (Packet Filtering) Stateless firewalls, on the other hand, does not look at the state of connections but just at the packets themselves. An example of a packet filtering firewall is the Extended Access Control Lists on Cisco IOS Routers.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered yesterday
Kiven WandaKiven Wanda
211 bronze badge
211 bronze badge
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Kiven Wanda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
add a comment
|
kickpuncher11 is a new contributor. Be nice, and check out our Code of Conduct.
kickpuncher11 is a new contributor. Be nice, and check out our Code of Conduct.
kickpuncher11 is a new contributor. Be nice, and check out our Code of Conduct.
kickpuncher11 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Information Security Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsecurity.stackexchange.com%2fquestions%2f218002%2fwhy-is-it-called-a-stateful-and-a-stateless-firewall%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
A side-note, but you should know that stateless firewalls have historically been subject to a number of architectural vulnerabilities, especially when packet fragmentation is involved.
– forest
20 hours ago