Re:So you wanna buy a used IP address block?
by samoa42 on Tuesday March 03, 2020 @06:26AM
(#22473539)
nat ist stateful.
if there is no state for the connection, it's probably denied.
[ Parent
| on HN ]
Re:So you wanna buy a used IP address block?
by zAy0LfpBZLC8mAC on Tuesday March 03, 2020 @07:35AM
(#22473902)
No, it isn't, on both counts.
First, NAT is not necessarily stateful, just the common home router PAT or the telco CGNAT varieties of NAT are.
Second, NAT does not filter, that is what a firewall does. NAT only rewrites addresses. If there is no state for a connection in a stateful NAT, it looks up whether there are any rules for how to rewrite that connection, then adds a NAT state entry that specifies how to rewrite that connection (including, potentially, not at all), and in any case the (potentially rewritten) then gets forwarded--unless a firewall drops it.