Earlier quoted context omitted.
There is nothing special about firewalling off IPv6. NAT is not a security feature. The problem is that most consumer "routers" that people use nowadays are really: a router, a switch, a wireless access point, a firewall, and who knows what else. Here are some sample rules for firewalling off IPv4 (typed from memory, so use with caution): iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -m conntrack --ctstate ESTA…
> NAT is not a security feature. Why?
Linux: Limit IPv6 connectivity to specific programs
21–30 of 33 posts
Re: Linux: Limit IPv6 connectivity to specific programs
#22Earlier quoted context omitted.
> NAT is not a security feature. Why?
Because it was never intended as such and does not necessarily need to add any. The fact that many NAT implementations do add some security (by dropping inbound connections by default) is a side effect. I've seen NAT implementations that get it precisely wrong (consumer routers that set up .2 as the default DMZ), but that's still entirely valid.
Using NAT increases security simply by having deny by default.
Re: Linux: Limit IPv6 connectivity to specific programs
#23Earlier quoted context omitted.
Because it was never intended as such and does not necessarily need to add any. The fact that many NAT implementations do add some security (by dropping inbound connections by default) is a side effect. I've seen NAT implementations that get it precisely wrong (consumer routers that set up .2 as the default DMZ), but that's still entirely valid.
Whether or not NAT was designed with security in mind doesn't matter. Using NAT increases security simply by having deny by default.
Re: Linux: Limit IPv6 connectivity to specific programs
#24Earlier quoted context omitted.
Because it was never intended as such and does not necessarily need to add any. The fact that many NAT implementations do add some security (by dropping inbound connections by default) is a side effect. I've seen NAT implementations that get it precisely wrong (consumer routers that set up .2 as the default DMZ), but that's still entirely valid.
Whether or not NAT was designed with security in mind doesn't matter. Using NAT increases security simply by having deny by default.
I'm willing to bet that any IPv6 capable router also has a firewall.
Re: Linux: Limit IPv6 connectivity to specific programs
#25Earlier quoted context omitted.
Because it was never intended as such and does not necessarily need to add any. The fact that many NAT implementations do add some security (by dropping inbound connections by default) is a side effect. I've seen NAT implementations that get it precisely wrong (consumer routers that set up .2 as the default DMZ), but that's still entirely valid.
Whether or not NAT was designed with security in mind doesn't matter. Using NAT increases security simply by having deny by default.
While it could be argued that NAT adds an extra layer to security-in-depth by making it harder to accidentally open things up by missing out the default drop/reject rule, but I'd argue that all the faf that NAT can create by making it difficult to arrange point-to-point connections where they are actually desirable is not worth that little bit of protection against failing to configure the firewall correctly.
Re: Linux: Limit IPv6 connectivity to specific programs
#26Earlier quoted context omitted.
Whether or not NAT was designed with security in mind doesn't matter. Using NAT increases security simply by having deny by default.
But that is not a feature of NAT, that is a feature of a firewall (for example, it is possible to route incoming packets via the WAN as well as masquerade outgoing ones from the LAN - most people wouldn't even know their pants are down). It is a coincidence that home routers sometimes provide both leading people to conflate their firewall with their NAT system - but if a firewall is what is wanted (and is arguably th…
Re: Linux: Limit IPv6 connectivity to specific programs
#27Earlier quoted context omitted.
But that is not a feature of NAT, that is a feature of a firewall (for example, it is possible to route incoming packets via the WAN as well as masquerade outgoing ones from the LAN - most people wouldn't even know their pants are down). It is a coincidence that home routers sometimes provide both leading people to conflate their firewall with their NAT system - but if a firewall is what is wanted (and is arguably th…
NAT will always have a place, because not everyone wants to expose a uniquely routable address for every device they own (probably based on a device's MAC address) to the world.
Re: Linux: Limit IPv6 connectivity to specific programs
#28Security aside, this is even useful for new deployments of IPv6. It seems a lot of people have IPv6 networks that are less favorable for some traffic than their IPv4 networks. Some are running their IPv6 through tunnels. As soon as you enable IPv6 on your desktop, suddenly Firefox or Chromium will prefer IPv6 for any website with a AAAA record, which adds a ton of latency and reduces bandwidth. But theoretically, I c…
At home my HE tunnel is snappier than the plain ipv4 from rr. The weird thing is it is not just a case of user perception (mine). One of the upstream s1 ntp boxes I sync with has ipv4 and ipv6 and is relatively close. I set one of my s1s to sync with both the ipv4 and ipv6 addresses of the machine and the ipv4 clock displayed a lower delay and less jitter while the offsets were seasonably close.
"the ipv6 peer entry displayed a lower delay and less jitter while the offsets were reasonably close."
Re: Linux: Limit IPv6 connectivity to specific programs
#29Earlier quoted context omitted.
NAT will always have a place, because not everyone wants to expose a uniquely routable address for every device they own (probably based on a device's MAC address) to the world.
Can you give an example that isn't based on security (since the NAT isn't providing that)? I can only think of short-term (undesirable) transition or load-balancing mechanisms - all of which have better long-term solutions (anycast, multicast, and dynamic service discovery, etc)...
What would you call it when a router at the edge of a private network presents a single IP to the world no matter how many devices are behind it, for privacy reasons?
Re: Linux: Limit IPv6 connectivity to specific programs
#30Earlier quoted context omitted.
But that is not a feature of NAT, that is a feature of a firewall (for example, it is possible to route incoming packets via the WAN as well as masquerade outgoing ones from the LAN - most people wouldn't even know their pants are down). It is a coincidence that home routers sometimes provide both leading people to conflate their firewall with their NAT system - but if a firewall is what is wanted (and is arguably th…
NAT will always have a place, because not everyone wants to expose a uniquely routable address for every device they own (probably based on a device's MAC address) to the world.
In general, use the right tool for the job. NAT provides some blunt security features incidentally. It does not, for example, prevent your server from making connections to the outside world. The firewall is what is meant to be used to restrict traffic. That is its only job and it does that well.