Why do people say NAT doesn't provide security?
As far as I know, NAT (more specifically PAT) does provide a layer of security by not allowing inbound connection to be made to specific hosts. Although, I've commonly seen it written that this is not comparable to a firewall.
I understand that firewalls also filter outbound access. But NAT also provides a level of security, doesn't it? What am I missing?
Posted Feb 16, 2010, 10:57 PM UTC
it depends what you are comparing it to.
Say it's 2003 or so.
Now that it's 2010...
NAT provides about as much security as a stateful firewall with an inbound default deny policy. It's better than no firewall, but not better than an actual firewall. However, it is better than an actual firewall that was purchased because "we needed a firewall" but then not configured to block any traffic.
What if I just don't download one? Why would my machine spontaneously view a PDF?
automatic redirects from javascript embedded in malicious advertisements.
And this is main reason I run an adblocker.
Yup, it dowloads them from the Internet.
You're talking about two different things.
Yes.. I am. That was the point of the comment... That is the problem with most discussion about NAT, you end up with people making completely different arguments... You could say that there are a number of levels of security:
People saying "NAT does not provide security" are often comparing #6 to #4, while people claiming it does are comparing #4 to #1.
#6 is clearly better than #4, but #4 would be preferred over #2 or #1. The problem with saying that NAT/PAT does not provide security is that it is not a simple yes or no question.
My experience is with Sonicwalls (NSA and TZ) and not much with Cisco...other than playing with a couple 2500s in classes. My understanding is that cisco PAT can be configured with ACLs that allow those ports inbound access, but your last rule must be deny all or you are not doing your job as a admin. Justinsaccount, you probably already know this, just commenting for others.
and 3. are the same - might as well not even call 3. a NAT/PAT.
Should never happen, but I've seen noobs setup firewalls too.
and 5. are the same - except the the firewall will run SPI and Heuristics traffic as well.
Firewall with an inbound+outbound default deny policy, if you haven't opened something you might as well ditch the internet all together. You're nice and safe in your bunker, but all the pr0n is stuck outside.
All you get from a "Firewall" over a NAT/PAT is that it will do packet inspection and heuristics scans of content instead of just port type it's coming in on. Usually a firewall will have more throughput as well than the standard NAT - though the job of a NAT is so simplified compared to spi and anti-spam/malware detection that you wouldn't think of a $40 linksys as being slow.
I suspect it's all brought up because, like me, people need to justify the cost of a $400 sonicwall tz100w over a $70 linksys wrt54gl. At the end of the day, the person with the sonicwall is still getting infected by a PDF exploit as you said earlier but maybe didn't get infected by the PDF exploit from 2months earlier because the "network AV" caught it or stopped a worm from migrating from the wireless to the LAN via a sales guys laptop that was infected on his home network. The sonicwall is also connecting VPN tunnels and providing a PPTP VPN connection for remote clients to work. The linksys is still blocking inbound traffic...but the LAN/WLAN is the same network and everyone is sharing that worm the sales guy brought in.
The same goes for 2003, what a load.
Remind me not to hire you.
Do you have anything constructive to add?
No, please don't hire him. The world needs you to remain blissfully ignorant, and therefore, an easy target. By the way, have you seen this hilarious PDF?