Slashdot Mirror


Obsession With Firewalls Could Hinder IPv6

DosIgriegas writes "The obsession with firewalls in IPv6 may result in some of the quirks of IPv4 reappearing. Ars Technica has an article looking at the topic in depth, exploring the technical challenges of securing the new protocol, and looking a the re-emergence of old problems in new guises. 'Ironically, what's required to make IPv6 work through a stateful firewall is almost identical to what's required to make IPv4 work though NAT. This means the IETF's efforts to keep IPv6 NAT-free in order to make protocols do their job without messy workarounds are defeated by the notion that everything should be firewalled.' If we decide to stick with firewalls in IPv6, we'll see many of the same hard-to-diagnose network problems that we have with IPv4."

67 of 278 comments (clear)

  1. Transmission by eldavojohn · · Score: 4, Funny
    Request:

    Obsession With Firewalls Could Hinder IPv6
    *incoming request on port 9045, port reserved for new ideas*

    Response: 'Obsession'?! I don't know what you're talking about.

    *request identified as critical of host*
    *request forwarded to port 6666*
    *incoming request on port 6666, port reserved for criticism*


    Response: Maybe I'm not the problem, maybe IPv6 is the problem? Shouldn't a solution to a problematic situation meet the needs of said situation, not the other way around?

    *incoming request passed through network firewall, computer hardware firewall and finally rejected by software firewall, request complete*
    --
    Come on, this is like intercourse, sometimes girls/requests just require double or even triple bagging, the last thing you want is a virus. Some girls are regular port scanners ifyaknowwhatImean ...
    --
    My work here is dung.
    1. Re:Transmission by Sancho · · Score: 4, Insightful

      The problem was that NAT makes connections somewhat hard to deal with. IPV6 was designed to solve that problem. The problen now is that we realize that computers are vulnerable and need protection. IPV6 was not designed to solve that problem, and furthermore, it's not a problem which is likely to be overcome using technology or a new protocol.

    2. Re:Transmission by strikethree · · Score: 2, Insightful

      The problen now is that we realize that computers are vulnerable and need protection.

      Wrong. Microsoft based operating systems are vulnerable. Those operating systems are the only operating systems in existance that have ports that can not be shut down or limited to loopback addresses only.

      Regardless, I am not certain how they equate controlling traffic with using NAT. They are each distinct concepts. A firewall does not necessarily imply NAT and NAT does not necessarily imply a firewall.

      strike

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
  2. Defective by design? by gstoddart · · Score: 4, Insightful
    Not to overuse the whole 'defective by design' thing, but:

    'This means the IETF's efforts to keep IPv6 NAT-free in order to make protocols do their job without messy workarounds are defeated by the notion that everything should be firewalled.' If we decide to stick with firewalls in IPv6, we'll see many of the same hard-to-diagnose network problems that we have with IPv4.

    So, they're saying the way to get security in IPv6 is to throw away the whole concept of firewalls and hope that the protocol won't leave us with out collective bums hanging out in the wind??

    I can't see a widespread adoption of a protocol that wants to get rid of firewalls. Now, I guess it's entirely possible that the IPv6 would secure networks since I'm not really up to speed on it's details. But I'm going to need an awful lot of convincing before I put any machines onto a network without something physically between me and it.

    Unless IPv6 is very different, the only way I'm going to be able to set up my own personal network (and secure it) is with NAT. I'll take 'hard to diagnose' over pwn3d any day.

    This just sounds so wrong.

    Cheers
    --
    Lost at C:>. Found at C.
    1. Re:Defective by design? by Detritus · · Score: 4, Interesting
      You can still have firewalls, it's just that some firewall "features" have unintended consequences.

      The old-style stateless firewall will work just fine.

      --
      Mea navis aericumbens anguillis abundat
    2. Re:Defective by design? by drinkypoo · · Score: 3, Insightful

      The old-style stateless firewall will work just fine.

      Actually, the article is saying that many protocols require connections to odd ports, and connections from random hosts (think bittorrent) so firewalling must be application-controlled.

      It's similar to NAT in that both NAT and firewalling (of IPv4 or IPv6) require that you make and break rules on the firewall to allow traffic to get where it needs to go.

      Of course, you could just firewall all privileged ports... But then you'd still be leaving things open for inward connections to trojans with a daemon.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:Defective by design? by gstoddart · · Score: 2, Interesting

      Actually, the article is saying that many protocols require connections to odd ports, and connections from random hosts (think bittorrent) so firewalling must be application-controlled.

      But, who is going to trust an application to determine network policy? The first malicious application to come along will bork the whole system, won't it? I mean, 'random' hosts is the perfect invitation for badness.

      Maybe I'm just (once again) demonstrating my ignorance of such things, but this sounds like it will introduce more problems than it fixes.

      Cheers
      --
      Lost at C:>. Found at C.
    4. Re:Defective by design? by drinkypoo · · Score: 4, Insightful

      But, who is going to trust an application to determine network policy? The first malicious application to come along will bork the whole system, won't it? I mean, 'random' hosts is the perfect invitation for badness.

      It's worth mentioning that there is little or no reason for most people to run these programs at work, with certain notable exceptions like FTP (Which should just be allowed to fucking die already) and Bittorrent (which can be configured to use a single port.)

      Maybe I'm just (once again) demonstrating my ignorance of such things, but this sounds like it will introduce more problems than it fixes.

      It's not introducing a problem! This problem exists today with IPv4 whether you are using NAT or just firewalling!

      What they're saying is that IPv6 is not going to fix a problem with the logistics of firewalling that is already with us today.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    5. Re:Defective by design? by Anonymous Coward · · Score: 2, Insightful

      with certain notable exceptions like FTP (Which should just be allowed to fucking die already)

      What would you suggest replacing FTP with? I do agree that the whole control/data port thing is just fucking weird, but passive FTP at least makes it sane again.

      Somehow I get the feeling you're going to say "WebDAV".

    6. Re:Defective by design? by Tuoqui · · Score: 2, Interesting

      I do not believe they are saying that we should have NO FIREWALLS at all. I think the idea is to have more permissive firewalls since with that many IP addresses available in IPv6 the odds someone will be RANDOMLY scanning and hitting something for someone is so remote that it is almost a guarantee that they're specifically looking for you.

      The current scanning networks and such works because of one thing, you can almost count on hitting some IP addresses at any given block on the IPv4 network. Also because like 90% of computers are running windows you can probably scan for vulnerabilities and attack almost as quickly.

      --
      09F911029D74E35BD84156C5635688C0
      +2 Troll is Slashdot's way of saying groupthink is confused
    7. Re:Defective by design? by Kadin2048 · · Score: 5, Informative

      I really don't think the problem is as big as it's being made out to be.

      The advantage to IPv6 is that you can have more fully routable addresses, to the point where there wouldn't be any NAT anymore -- you might still have dynamically assigned addresses, but they'd still be fully routable across the entire network. This makes firewalling a lot simpler, because you can have more than one DMZed device.

      Devices which are known to be relatively secure and are designed to sit out in full view of the public -- for instance, maybe a VoIP appliance that by definition has to accept incoming traffic, but rejects everything else (but which needs lots of ports and can't tolerate NAT or much 'dumb' firewalling), could be easily put into its own DMZ without compromising the rest of your LAN. Right now, with IPv4 and only one shared IP address per household, this is fairly difficult -- all firewall rules need to be port-based. With IPv6, you can also do more complex address-based routing.

      So, let's say you have a network consisting of four devices and an IPv6 firewall; you have two highly insecure Windows boxes (for whatever reason) which aren't designed to and consequently cannot safely be exposed to the world, plus a hardened BSD machine which can have certain ports exposed (say, for email and SSH), and an VoIP appliance which needs to be able to make whatever connections it wants. You configure the firewall (which all traffic passes through) to not perform any packet filtering on the VoIP appliance's address, effectively leaving it outside the perimeter. (Hopefully the manufacturer of the appliance knows what they're doing. But, to be safe, you could set it up so that traffic from it doesn't get let in to the firewalled zone, so someone couldn't compromise it and use it to get in to the rest of your network.) The BSD machine's address gets only the necessary ports opened, with everything else to it automatically rejected. And the Windows boxes are totally firewalled, with all incoming connections rejected unless a port is specifically requested open.

      The firewall required to do this isn't any less complex than a current NAT/stateful-firewall, but it provides several advantages. Rather than having only one externally-facing address for the entire LAN, and routing traffic based on the port or TCP connection, you can just route based on the IPv6 address, and create all sorts of (in)flexible rules based on how much trust you have in the destination device, which can include creating further subnets that are isolated from each other, for security purposes.

      IPv6 isn't "insecure," in fact I think its wide adoption will greatly enhance end-user security, once people start figuring out how to work with it, and the Linksys and Netgear-type manufacturers start building inexpensive boxes to do the job.

      The main difference between v4 and v6 is that with v4, there's a clear demarcation between "LAN" and "WAN." With IPv6, this isn't quite as true; rather than thinking of security in terms of castle walls, you need to use a more fluid metaphor. Everything in your house is part of the "WAN," in terms of addressing, but parts of it may be more secure than others.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    8. Re:Defective by design? by gclef · · Score: 2, Interesting

      Right...so, a VoIP phone (running SIP or H323, which do this sort of dynamic port-allocation) is not something useful for work?

    9. Re:Defective by design? by gstoddart · · Score: 2, Insightful

      In the tech world, you must adapt or die.

      Your reasoning for using NAT seems to be based on dogma and tradition, not actual... reason.

      So it seems you have selected "die." Good luck with that, dinosaur!

      No. That's not true at all. You're just being a dick for the sake of it, and you probably know it.

      I'm asking for clarification of how things work relative to my own understanding. I'm not wedded to NAT based on anything -- I'm asking based on my understanding of how it works, and the fact that I'm aware that I have an incomplete understanding.

      As a security pro, I can't WAIT to see the death of NAT. I am concerned that some of the older people around here will make it a lot harder than it needs to be out of an irrational fear of change and (gasp) having to learn something new :-(

      And I can't wait until some of the younger people around here stop being condescending dickheads just to sound cool and think they know it all. You're free to make your own assumptions about people, but, please, try not to drag the level of discourse around here any lower than it already tends to be.

      I don't have an irrational fear of change, or learning something new. I'm trying to figure out what the article is saying -- the initial reference to being "obsessed with firewalls" to me sounds like people are advocating the wholesale removal of firewalls, or that we should be leaving firewall rules up to applications. That sounds bizarre to me.

      I am not a security pro, I'm trying to further my understanding of how IPv6 affects this landscape -- IPv6 has been 'just around the corner' for widespread adoption about as long as Linux has been 'almost ready for the desktop'. As such, I've taken to ignoring it since it doesn't seem to be going anywhere at any pace that I can tell except in academia.

      The stuff in the summary just seemed a little odd, and I asked a question hoping that someone could shed a little light, and maybe enlighten a few people. But, hey, if you want to reduce the whole thing to childishness, then neener neener to you too! :-P

      Cheers
      --
      Lost at C:>. Found at C.
    10. Re:Defective by design? by Kadin2048 · · Score: 2, Informative

      I'm a little confused about how someone would be able to go about building a DMZ using IPv6 - just connect it through a different switch and don't allow traffic to go from it to your "internal" machines?

      Basically, it's just like an Ethernet VLAN, except it would be as part of a router, not a switch, because you're one level higher on the OSI model. (Ethernet is Layer 2, IP is Layer 3.) But fundamentally it's a similar idea; a subnet is really just a Layer 3 VLAN. (In actuality, I think on most networks there is a 1:1 relationship between Ethernet MACs and IPv6 addresses, so the difference between routers and switches will probably become even more nuanced.) But it's not hard to set up, it's just a matter of configuring the firewall-box's routing table appropriately. (Which in a consumer appliance would be set up already, probably with a clearly marked plug on the back for them to attach their VoIP ATA into.)

      Basically you could just tell your home-router to route all traffic destined (based on the IPv6 address) for your VoIP box directly to its destination, unfiltered, but also to not treat traffic coming from that VoIP box any differently from traffic coming from anywhere else on the net. It would effectively be walled off in its own logical network. Someone who compromised it would still be able to use your WAN connection to send out viagra spam, but they wouldn't have any access to the rest of your network, any more than they already do from the outside.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    11. Re:Defective by design? by Znork · · Score: 2, Insightful

      "when addresses are doled out, they're doled out in evenly-spaced, predictable sequence"

      v6 adresses, as a general rule, arent doled out. You get a routed /64 subnet, then you autoconfigure/assign each device on your 64bit subnet. Scanning a 64bit address space means you're scanning about err... 18 quintillion addresses (eh, bigger number than I know my prefixes)? Sure, it's a bit more predictable with internal subnetting and certain predictable parts of mac adresses (which could trivially be depredictableized), but it's a prohibitively more difficult problem, particularly if you're assuming response times and trying to avoid getting noticed, which you probably would be if you were flooding an internet connection with several trillion connection attempts per hour.

    12. Re:Defective by design? by evilviper · · Score: 2, Informative

      So, they're saying the way to get security in IPv6 is to throw away the whole concept of firewalls and hope that the protocol won't leave us with out collective bums hanging out in the wind??

      NO!

      Firewall != NAT

      NAT != Firewall

      Please move along.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  3. Translation by Zarhan · · Score: 5, Informative

    "Today we learned, that lots of people who have thought of NAT as a security mechanism, are getting a hit with cluebat when they find out that the IPv4 NAT also implements a stateful firewall as a byproduct. Since there is no NAT with IPv6, you only have to implement stateful firewall without address translation."

    Sigh.

    This is a non-issue.

    What IS an issue are the new IPv6-specific things related to security. You cannot do a network scan anymore since even a /64 is a huge address space to scan and so on. The presentation I watched at IETF Prague was quite interesting: http://www3.ietf.org/proceedings/07mar/slides/v6op s-1/sld1.htm

    There are some implementation issues, such as anycast addresses and stuff like that you need to take into account.

    However, this "getting rid of connectivity issues due to no longer having to NAT" has NEVER been expected by anyone who knows even a bit about networking. Because we're not returning to an un-firewalled world.

    1. Re:Translation by Raphael · · Score: 5, Interesting

      However, this "getting rid of connectivity issues due to no longer having to NAT" has NEVER been expected by anyone who knows even a bit about networking. Because we're not returning to an un-firewalled world.

      There are also some features of NAT that I would like to keep even when using IPv6, the main one being the ability to hide the topology of my networks from the outside world. So in a way, I do want to have some connectivity issues.

      For example, I currently maintain a firewall and NAT box that has a pool of several public IP addresses (Internet access) on one of its interfaces, and 3 additional network cards connected to different networks. Each of these 3 networks contains a number of machines and some servers for various protocols that are mapped to some of the public IP addresses. One of these private networks is rather open (with protocols such as NIS and NFS used by most hosts) and another one is rather secure (no host trusts any other host on the same subnet). I do not want to allow an external attacker to guess on which network a given server could be. Maybe this extra level of security through obscurity is not really necessary, but I want to maximize my chances in case of an attack (e.g., zero-day exploits). Some services that I mapped to an external IP address and port may go to a server on one network, while the same IP address but a different port may go to a different network. I do not want to reveal too much information about the topology of my networks, that's why I like NAT.

      NAT causes some connectivity issues, but I consider some of them as features, not problems. Oh, and I know that some people claim that the network hiding brought by NAT is just some false security and that IPv6 with its much larger address space will also make it difficult to scan hosts on a network. But that's not the point here: hiding the topology is just one of the many layers of security that I use, and the larger address space of IPv6 will not prevent some information from being disclosed in routing table updates, etc.

      --
      -Raphaël
    2. Re:Translation by Raphael · · Score: 2, Insightful

      Does NAT really offer that much better security than a Dark-Net implementation?

      They do not really address the same issues. First, this is not only NAT that provides the added security, but the fact that I use several disjoint networks behind the NAT box (think about DMZ + private network, except that I have more than one DMZ) and also the fact that there is no easy way for an attacker to guess the mapping between public IP addresses and private addresses in one of these subnets.

      As I wrote in my previous comment, these networks contain several servers. Most of these servers are public and are intended to be accessible by almost anybody, so darknets are not really appropriate in this case.

      The kind of scenario that I am trying to prevent or make more difficult by using NAT is the following: some of these servers have "interesting" contents on them and could be juicy targets for some attackers (no, I'm not talking about pr0n here but about some company internal information). These servers are usually well protected and have only one or just a couple of services exposed to the outside world (e.g., HTTP). But other servers may not be so well protected because they run experimental code for public testing or demonstrations, or simply because they run a larger number of services that may be vulnerable to zero-day exploits. If one of these "weaker" servers is compromised, I do not want it to be used as an intermediate step to launch an attack on other servers on the same network (behind the firewall). That's why I like NAT: it allows me to run the servers in different networks with different security policies and it also hides their private IP addresses. Both of these features add a small amount of security to the network. Maybe not much, but hopefully enough to prevent some attacks or delay them until IDS and counter-measures can be used effectively.

      --
      -Raphaël
  4. Re:NAT needed? by drinkypoo · · Score: 2, Informative

    The issue isn't NAT. We're not talking about using NAT. You're so far behind the curve that you aren't even visible over the horizon any more. The issue is that many protocols today are based on more than just opening a single outgoing TCP connection, or just spraying some UDP. They require connections on multiple ports and often to a variety of hosts. If there is a single firewall it must dynamically configure firewall rules for these applications or they don't work properly. You have to have a single firewall for security; you can't just have incoming traffic on your corporate net without a firewall. For people with a small home network and just a couple of machines you could use just the firewalling on your system (especially if your system is *BSD or Linux.)

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  5. In order to help technology progress by Timesprout · · Score: 4, Funny

    I hereby announce I am giving up my obsession with firewalls and reverting to my earlier obsession with Halle Berry.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
    1. Re:In order to help technology progress by jddj · · Score: 2, Informative

      Sorry - after IPv6 is fully rolled out, Halle Berry is deprecated in favor of Kirsten Dunst...

    2. Re:In order to help technology progress by archen · · Score: 2, Funny

      Then thank god that day will never come =)

  6. Firewall != NAT by 0racle · · Score: 4, Insightful

    You can have a firewall that does not use NAT. Both sides are publicly addressable but there is still a security device between you and the outside world.

    --
    "I use a Mac because I'm just better than you are."
  7. It has already happened by The+One+KEA · · Score: 5, Informative

    Linux has already gone down this path - the old IP connection tracking code in the Linux iptables packet filter has already been reworked into a more general layer-3 connection tracking mechanism, with separate 'drivers' for tracking the IPv4 and IPv6 protocols and separate 'plugins' that can handle specialized protocols (FTP, IRC, H.323, PPTP and so on).

    I suspect that commercial firewalls will probably follow suit.

    --
    SCREW THE ADS! http://adblock.mozdev.org/ Proud user of teh Fox of Fire - Registered Linux User #289618
  8. Its ridiculous even having to rely on firewalls by SkunkPussy · · Score: 3, Insightful

    Is it a good idea to expect that whenever and wherever a mobile computing device connects to a network, there will be a properly configured firewall ready to protect it, or should computers and other networked devices be able to function securely without an external firewall to protect them?

    Its a nonsensical situation that operating systems in general cannot be relied upon for the security of their own network interfaces - after all it is down to the operating system to accept or reject user logins. In the same way it should be the operating system that sets policy about whether to accept or reject packets from arbitrary locations.

    A firewall is roughly equivalent to a plaster on an open wound - it serves a useful purpose, but nobody should expect to walk around with an open wound on a long term basis.

    There is little if anything that a firewall can do that an operating system can't.

    --
    SURELY NOT!!!!!
    1. Re:Its ridiculous even having to rely on firewalls by RockRampantly · · Score: 2, Informative

      Its a nonsensical situation that operating systems in general cannot be relied upon for the security of their own network interfaces - after all it is down to the operating system to accept or reject user logins. In the same way it should be the operating system that sets policy about whether to accept or reject packets from arbitrary locations. A firewall is roughly equivalent to a plaster on an open wound - it serves a useful purpose, but nobody should expect to walk around with an open wound on a long term basis. While I agree with you that a firewall protecting a single IP is rather useless - the OS should take care of itself - a firewall is definitely useful when protecting a group of machines. It can be used to create a relatively trusted network without having to worry about interference caused by rogue packets from the outside.
    2. Re:Its ridiculous even having to rely on firewalls by Vellmont · · Score: 4, Insightful


      Its a nonsensical situation that operating systems in general cannot be relied upon for the security of their own network interfaces - after all it is down to the operating system to accept or reject user logins. In the same way it should be the operating system that sets policy about whether to accept or reject packets from arbitrary locations.

      In general the software firewalls that come with Operating Systems are quite reliable and can be trusted.

      What can't be trusted is that all the firewalls on every machine are configured properly. It's FAR easier to administrate one firewall than it is to administrate 10 or 100 different workstations/servers.

      --
      AccountKiller
  9. I like my firewall, thanks by Carrion+Creeper · · Score: 5, Insightful

    I would say I personally am not obsessed with firewalls per se, I'm obsessed with privacy and security.

    The firmware on a firewall also has a much smaller amount of code to debug in order to make sure that it will function properly all the time. I would never assume that my Windows XP machine was properly patched with enough confidence to plug it straight into a cable modem all the time.

    I am also not interested in having each computer in my home being identified and tracked individually, and I don't pirate software or download music. As such, even if the need for NAT is removed, I would still be highly interested in purchasing a device to block incoming connections and mask my IP address (maybe by swapping with other devices within my home on certain connections).

  10. Privacy Concerns? by WiseWeasel · · Score: 3, Insightful

    It seems strange that people are arguing about getting rid of NAT devices and having unique IPs for every device without bringing up the privacy implications. It seems that having unique addresses for every device is a small step away from being able to track and monitor every device on the net. Without the ability to proxy or perform NAT services, every device would be exposed to the net, and would leave a reliable trail of activity. It seems that this would encourage governments to think that they can control and enforce the web, and deal a pretty strong blow to the level of anonymity granted by the current network topology. I just hope that if this does come to pass, that there will be solutions to mitigate this risk, to help obfuscate individual activity on the net. This hazard to troubleshooting network issues, as described in the summary, might be an important factor in ensuring privacy and a certain degree of anonymity on the web.

    --
    "I like systems, their application excepted", George Sand (French)
    1. Re: Privacy Concerns? by FreezerJam · · Score: 5, Insightful

      Not to mention your average consumer ISP, which, like a cable company, would love to start charging "per outlet".

      Much as a NAT-less world might be easier to build and debug, I think I'm happier if my network connection is like my electric connection.

      One connection delivers: all electric energy / all bits
      I can go up to a max of: 200 amps / 5 Mbps
      I might still be billed: by energy used / by gigabytes sent
      But I don't pay extra: for more outlets / for more devices
      I cover all the costs: of the electric panel / of the router

      Handing someone else the information to break the above model is not something I want to do.

  11. 128 bits by CrtxReavr · · Score: 5, Funny

    Since we have the attention of the IPv6 crowd, everyone should add this record to your forward zones:

    aacs IN AAAA 09f9:1102:9d74:e35b:d841:56c5:6356:88c0

    -CR

    --
    "So is the BSD licence even more 'free' (than GPLv2)? Yes. Unquestionably." --Linus Torvalds (TinyURL.com/2vugzl)
  12. stateless firewalls by greenrom · · Score: 4, Informative

    You can have a firewall without using NAT. Being able to assign every device a routable address means that you can implement a stateless firewall instead of a stateful firewall. For most purposes, a simple firewall that filtered incomming TCP connection requests and UDP packets on all ports except those specifically allowed would suffice. This has the advantage that the firewall wouldn't need to track the state of TCP connections, and would eliminate problems like firewalls deciding a connection has been idle too long and closing it.

    For the home user, being able to assign a routable IP to every PC has other advantages. Do you have multiple PCs with Remote Desktop running that you want to access remotely? NAT makes this difficult since all the PCs share the same IP address and need to listen for connection requests on the same port. Assigning every machine a routable address makes this problem go away. Don't like that example? The same applies to a web server, or SIP phone, or Bittorrent, or a myriad of other applications.

    1. Re:stateless firewalls by gclef · · Score: 3, Insightful

      Just for fun, try running SIP or H323 through a stateless firewall sometime. Since you're advocating stateless firewalls, I can tell you've never tried....it doesn't work.

      SIP, H323, and a bunch of other protocols that are starting to be used regularly as business needs, dynamically allocate ports. You won't know what ports you'll need to allow through the firewall, since they'll be different for every connection. The only way this works is if your stateful firewall understands enough of the protocol to learn which ports it's expecting to see a response on. (In the case of H323, the response may even come from a totally different IP.)

      This is precisely the problem that will continue to be the case in IPv6.

    2. Re:stateless firewalls by kalugen · · Score: 3, Informative

      This is totally correct, but there are also other problems with stateless firewalls...

      Let me explain what a stateful firewall does (not to you obviously, but I'm reading comments from lots of people that do not seem to fully understand the issue).

      A stateful firewall can filter traffic not by just "blocking" some protocols or addresses/ports.

      It can police traffic using the abstraction of "connections": you are able to tell it "allow NEW connections to this service, but not to that. And please let come in all traffic that pertains to already ESTABLISHED connections. Discard all INVALID - not NEW or ESTABLISHED - traffic" (yes, I'm taking the terms directly from linux's iptables/netfilter).

      This is not simple as it seems... first, there are lots of problems with defining what a "connection" is just by looking at the traffic from the kernel's POV because is usually an application's (user space) work to make sense of all those bytes carried in the payload of TCP/UDP packets.

      For plain old tcp session, like the ones used by SMTP or HTTP, this is easy: the protocol itself has the concept of "sessions" (every packet carries a "sequence number" that is used to identify the packet as part of a "session" - yes, this is a possible attack vector, and no, it's not _that_ easy to guess/brute force them. Not anymore). So, HTTP/SMTP and the like are EASILY firewalled and NATted.

      But with ICMP or UDP? You have to do some smart tricks in order to implement the "connection" concept, for example: ok, we do not have session numbers, but if you send an ICMP echo request to an IP address, we should expect an ICMP echo reply to come back sooner or later from that same IP address, so here is your ICMP "session" (almost). Sending an ECHO request and receiving (or not) an ECHO reply is what actually happens when you use the "ping" command.

      And beasts like FTP or SIP, H323, PPTP... the lot? Those nasty guys generally work by opening a TCP "control" connection, where protocol commands and responses are expected to travel... at some point during the conversation someone issues a command telling the other part(s) to expect a new connection on some other port and maybe with some other protocol... this command means something only to the high-level applications implementing these high-level protocols. It doesn't mean shit to the kernel, because this is not IP, TCP, UDP or ICMP: it's an higher level abstraction.

      This is why you have to write special "helpers" for these protocols to bridge the gap and make things work: the "helpers" can intercept and understand the high level protocol commands and manipulate the kernel's notion of what low level traffic is RELATED to an already ESTABLISHED connection, because the kernel can't tell by itself.

      In the case of FTP, the corresponding helper looks for the command "open new connection on port xxxrandomxxx for data transfer" (actually, the PORT and PASV commands) in the traffic travelling through the firewall, it figures that the important part is "port xxxrandomxxx" and then marks as "RELATED" traffic coming/going to port xxxrandomxxx (yes, "helpers" are another attack vector, and no... they are generally smarter than in my description, I am oversimplifying... (*)).

      The same tricks are needed for some forms of NAT: specifically, the one when you have many hosts/PC on the "inside" and just one public routable address on the "outside" - Cisco calls this "PAT" - so the firewall needs to track "connections" to succesfully map traffic between external and internal hosts. Other forms of NAT includes the much simpler 1:1 (you have 'n' internal addresses and 'n' external addresses) and do not _require_ the tricks.

      Having said all that...

      Accepting ESTABLISHED tcp connections from port 80 (http) is a LOT different than just allowing generic tcp packets whose source is port 80 to come in, for example.

      In the first case you're allowing only legal traffic that constitutes a response to your requests, as per th

  13. My brain hurts... by evilviper · · Score: 3, Interesting

    This seems to be the kindergarten introduction to firewalls, written by someone who is feeling around in the dark, and doesn't really know what he's talking about...

    So what's the point of the pages full of irrelevant details about how Vista and ZoneAlarm works?

    Stateful firewalls require you to explicitly allow incoming connections certain ports, even with IPv6. That's it. Nothing else there.

    What he completely misses is that this is worlds better than NAT, which also requires assigning a unique port on the single IP address... You're screwed if you want more than one machine to access the same service, which doesn't allow you to use a non-default port.

    Want two web servers running (on port 80)? Want two machines to be able to receive VoIP calls? Want multiple machines to be able to play some online game? Too bad. It's only with the multiple addresses IPv6 offers that it's really possible.

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  14. Firewall but without a NAT? by garlicbready · · Score: 2, Insightful

    maybe I'm missing something here as I admit I'm not fully aware of the low level details of network implementation
    but wouldn't it be possible to still have a Firewall but without a NAT?

    i.e. instead of devices pretending to be just the one IP address that's been assigned to the router via NAT, they instead each have they're own addresses
    However all communication still physically goes through the router / firewall / same device to filter out any incoming dodgy packets via SPI, or put limits on incoming communications (port filtering for given IP ranges for internal devices) to make sure that access is only granted when requested instead of by default

  15. Re:IP6 is too complicated by Just+Some+Guy · · Score: 3, Informative

    I know you must be trolling, since configuring IPv6 is mostly identical to setting up IPv4. Type an address, a prefix length, and a gateway and go. What's so tricky about that?

    --
    Dewey, what part of this looks like authorities should be involved?
  16. A Firewall is still the right route in some cases by ipjohnson · · Score: 2, Insightful

    For a lot of settings (Corporate,home etc.) allowing random access into your network doesn't serve any purposes. If you need to provide services you can serve them through the firewall or you can make a DMZ outside the firewall but there is no need to allow random access to your network.

    That being said I totally agree that OS's need to be more secure but thats just part of the equation to proper network security.

  17. Re:NAT needed? by Kadin2048 · · Score: 4, Insightful

    This isn't about NAT, it's about firewalling (blocking ports). You can have a firewall without NAT, but apparently allowing firewalls allows NAT too. Since NAT is bad design, and as you say unnecessary, we'd like to disallow it at the protocol level. However if you do that, you can't have a firewall which is a problem for some people. IMO, firewalls are bad design too. Close the ports you don't need, and use ACLs to limit access to the ports you do.

    Sort of. By definition, a stateful firewall probably has the capability of performing NAT, but there's no reason why you'd want to, if you have enough external addresses for everything on your network.

    I don't think that NAT is "disallowed at the protocol level," as much as just rendered unnecessary. You could still build an IPv6 NAT box, if you really wanted to, but it would be a bit stupid. It's like building a box that hides two Ethernet cards behind one MAC address -- sure, you could do it, but since they both already have unique identifiers, why would you want to? There's no shortage. (Okay, that may not be the best comparison in the world, but you get the idea.)

    NAT is driven by a shortage of routable IP addresses. With v6, there's no longer a shortage. However, people are still going to want the security offered by stateful firewalls (NAT, in its most trivial 1:1 implementations, doesn't offer any security -- it's all in the firewall anyway), which if configured incorrectly or overzealously, could create almost as many problems themselves as NAT does currently.

    However, I still think that IPv6 is a big improvement. Why? Because with v6, you have the option of not using the stateful firewall, on devices that are hindered by it, while still retaining the ability to use one and mimic IPv4 security behavior. With IPv4, unless you are wealthy enough to afford a static IP for everything in your house, you don't even have the option of exposing more than one device (per port) to the public Internet.

    To me, this demonstrates that there's really no downside (besides the obvious implementation cost) to IPv6. People who just want nothing to change, can basically have nothing change. Their IPv6+Firewall network will behave just like an IPv4 one, but people who want to use the capabilities of IPv6 (for example, VoIP using SIP) will be able to, by reconfiguring their firewalls to be a bit smarter about incoming traffic.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  18. The headline is dead on by spywhere · · Score: 2, Informative

    The media -- and the consumer anti-virus manufacturers -- feed our "obsession with firewalls," and I see it every day in the home-user world.
    Computers sitting behind a NAT router, which is pretty much all the firewall most machines need, come factory-loaded with Norton Internet Security or McAfee Security Center. This makes it nearly impossible for the average home user to share files and printers, and (especially with Norton) makes it very likely that they will answer some of the hundreds of pop-up questions wrong and break something they want:

    "MSIMN.exe is trying to access the Internet!
    What do you want to do:
    1. Permanently block it?
    2. Dial 911?
    3. Buy even more Norton crapware?


    I try to explain to my customers that they want a hardware firewall (the router) and don't really need a software firewall other than the one-way jobbie that ships inside Windoze.
    OTOH, one customer this morning still has an XP SP1 machine plugged directly into her cable modem... guess what happened to her machine?

    Oh, well, I get paid to fix these kind of problems, so I guess I don't mind. God forbid they ever get it right!

  19. IPv6 Needed? by igb · · Score: 4, Insightful
    SO it's been more than 11 years since RFC1883, and there's been no non-toy deployment. Had IPv6 just been IPv4 with longer addresses, it might have been deployed, but they decided to add a load of extra features to complicate proceedings (the worst offender being mandating IpSec, which for practical purposes no-one uses for anything other than a minority of VPN clients). Normally a technology that has no major deployment after a decade is assumed to be dead: X.400 springs to mind, in many ways.

    ``Running out of IP numbers'' is like ``running out of oil'': it'll happen, but crying wolf didn't help the cause. It's claimed IPv6 is Big In Japan but, like popular beat combos, that means ``dead elsewhere''. And I"m sit in a hotel room in Tokyo happily IPv6-free, and i've just come from a building owned by one of the largest IT companies in Japan which was entirely IPv4.

    IPv6 has been ``next year'' for the last ten years. It's still no-where. What'sdriving it now that wasn't driving it five years ago?

    ian

    1. Re:IPv6 Needed? by Znork · · Score: 4, Interesting

      "What'sdriving it now that wasn't driving it five years ago?"

      Virtualization. Where you once had one machine serving several applications, it's now become trivial to separate applications into differing vm's for security, simplicity and scalability. You'll still want to adress the unique vm's, and ipv6 is a great way to do it.

      Fast forward ten years and you'll have applications the way you have VM's today. Instead of deploying an app on a specific platform, you'll be able to deploy a VM image like you fork a process today. If you thought you needed IP's today, wait 'til your processes not only require their own PID but also their own IP address.

    2. Re:IPv6 Needed? by numbski · · Score: 4, Interesting

      Actually, the inability for the small guy to get an IPv6 allocation from ARIN is more than a bit annoying. I was willing to pick up a block of IPv6 addresses to built out my data center on, and then use IPv4 tunnelling where required. I couldn't get an allocation unless I had enough customers to use a full (IPv6) /32, which of course I don't. We're just starting out, so they basically force the little guy to use IPv4, and then do a migration later. This is LAME. They don't even charge for IPv6 allocations, so far as I can tell there's a monetary sub-motive here to squeeze as much money out of IPv4 as they can, and if you're big enough, they'll let you have IPv6 for free. If you're too small, either buy an IPv4 block, or go buy an IPv6 block from one of the big guys that got it for free. :\

      --

      Karma: Chameleon (mostly due to the fact that you come and go).

    3. Re:IPv6 Needed? by drmerope · · Score: 3, Insightful

      IPv6 has horrible implementation consequences for hardware accelerated routing (i.e., every major switching device that interconnects the internet today).

      The decrease in packet-per-second switching performance is severe and has been a critical road block to IPv6 adoption. Basically the IETF didn't have a clue about the consequences of adopting 128b addresses. Which each passing year silicon technology roughly follows Moore's law and is gradually getting ahead of the game (b.c. traffic isn't growing exponentially).

      So five years ago IPv6 was completely ridiculous. In a few years the technology will catch-up and real IPv6 deployments can begin.

      Anyways, there is no real shortage of IP space. There are only some gross mis-allocations: e.g., not very large companies which now control multiple class a blocks.

      It is amazing that this article now attempts to spin firewalls as an obsession. Firewalls are in fact a core aspect of security unless you are able to carefully audit every device, every service, etc. People with dreams of their freezers having public IPs don't seem to get this: doing so would mean security auditing your freezers embedded OS!?!. Its crazy.

      Also some people seem to be thinking that protocols requiring stateful firewalls are broken. This is false. Protocols that require the firewall to inspect the application layer contents are broken. But TCP is a stateful protocol, consequently firewalls should implement stateful behavior.

    4. Re:IPv6 Needed? by Fyre2012 · · Score: 2, Informative

      ...force the little guy to use IPv4...

      The process for getting v4 IP's directly from ARIN complicates that a bit...

      The minimum allotment is a /20, which is 4096 IP's, and for a 'little guy' it'd be pretty hard to fill up.
      ARIN also demands that before you can qualify, you must use 75% of the allocation within 90 days of it being assigned to you, otherwise you run the risk of having the IP's revoked.

      If you're Multi-Homed (multiple carriers terminating at the same endpoint [your network] using BGP) than the minimal is a /22, which is 1024 IP's, but it's the same deal with regards to allocating 75% of them within 90 days.

      --
      This is not the greatest .sig in the world, no. This is just a tribute.
  20. Re:IPv6 is comming, very soon now... by 808140 · · Score: 2, Informative

    IPv4 sites can be accessed with IPv6; IPv6 addresses include IPv4 addresses as a subset. On IPv6, you can access the entire IPv4-only internet; it is the IPv6-only internet that you cannot access with IPv4. That currently constitutes a minuscule number of sites, so it is no great loss, but once IPv6 begins to take hold -- and it will, China, India and Japan do not have enough addresses given their populations -- people who insist on using IPv4 will begin to find that large swaths of the internet are inaccessible.

    It's not like anyone is expecting an overnight change, as IPv6 was designed to co-exist with IPv4 for some years. But once the number of IPv6 sites reaches some critical mass, abandonment of IPv4 will be quick. Early adopters of IPv6 will absolutely not find themselves penalized, assuming that their ISP does in fact support IPv6, as they can do everything they can currently do with IPv4 with IPv6 and possibly more.

  21. Re:NAT needed? by MobyDisk · · Score: 4, Insightful

    Software firewalls are a non-sequitor in my opinion. It's really an added layer of obscurity.

    If someone installs a firewall and say "please block port 123" I can't help but ask "Why did you open port 123 in the first place, then build a wall in front of it?" The fact that these firewalls exist just shows how stupidly the operating-systems UI is that it is so complicated to determine what apps are listening on the network, and what apps aren't.

    Blocking outgoing apps is a completely different issue, and software firewall might make sense for that, if you don't trust the applications on your machine (which is a sad state of affairs anyway)

  22. Broken protocols by Skapare · · Score: 4, Insightful

    A protocol that requires a firewall to be stateful just to allow it to pass, I would call broken. And yes, I have for years called FTP a broken protocol (acknowledging that this observation is hindsight). I'm not talking about statefulness for NAT purposes, but rather, statefulness to track permissions on related communications (e.g. the DATA connection in FTP). FTP was designed in the day when no one expected blocking of arbitrary ports. But this is something we will be doing apparently forever.

    Let's fix the broken protocols and move forward. While we can use HTTP for many file transfer needs, a new protocol that conducts everything over a single TCP connection or a single SCTP session is where we need to go. Then a firewall can be simple in operation and probably more secure as a result.

    --
    now we need to go OSS in diesel cars
  23. Gaaaah! by mikeee · · Score: 2, Insightful

    The problem with NAT and firewalling, both, is that they're broken by design. They're attempts to add features to the protocol/application/OS layer that are implemented at the network layer. It doesn't have the necessary information to do the job properly! So we end up with godawful mostly-kinda-works klugdes like timeouts on idle TCP connections, etc....

    I spend a fair bit of time tracing down network-related application issues, and let me tell you, NAT and firewalling are the work of the devil. Look, I'm all for a Linksys in front of your home Windows box, but please please, can't we kill this nonsense off once and for all?

    No?

    (pounds head on desk)

  24. Re:NAT needed? by Kadin2048 · · Score: 4, Informative

    When people talk about using NAT, 99% of the time they don't mean a 1:1 NAT, but a NAPT as found in home routers and configurable in many midsize routers and PC operating systems.

    Such a NAPT does offer security because it disallows all uninvited incoming connections and thus shields "services" running on systems inside of the NAPT from access from the Internet.


    Sure. But what they're really describing isn't NAT, but rather the stateful firewall that's inherent in all non-trivial implementations of NAT.

    Since you can take just the stateful firewall part, and use it with IPv6, there's no security disadvantage there. All you lose is the kludgy NAT parts, and in trade you gain the ability to do much more complex and useful routing -- creating various subnets with different security levels, etc. It's nothing that hasn't been going on with big corporate networks for years (those companies that have Class A blocks and can afford to give every workstation a 'real' IP still have firewalls and security policies), but now home users can have the same flexibility, if they want it.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  25. Security by obscurity doesn't work by Moraelin · · Score: 4, Insightful

    Sorry to rain on that parrade, but the (variants of) "IPv6 is secure because it's a 64 bit space and noone will ever guess your address" sound... surrealistic. It's security by obscurity of the worst kind. The kind that can't possibly work.

    We live in an age where far larger combinations of bits -- e.g., email addresses or name/password combinations -- are sniffed, phished, compiled into lists and sold, etc. What on Earth makes people think that a fixed IPv6 address would be more secure? No, honestly, what's so special about an 8 byte IPv6 address that makes it un-sniffable?

    The notion that your machine is only findable by raw brute-force scanning is pretty laughable. Yes, it's one of the easiest and most non-brainer methods, but it's not the only one.

    As a counter-example, look at how email viruses work. Because they _do_ work without scanning and without looking for you speciffically. They just go through more hops, each hop sending itself further to everyone in your address book.

    Guess what? The exact same can be trivially adapted to an IPv6 worm. Each pwned machine just continuously looks for incoming and outgoing connections, and tries to spread to those too.

    Or how about lists of static addresses, the same as the lists of email addresses that spammers buy and sell. Only unlike email addresses, if you're unfirewalled, you can't keep yours secret. You _have_ to tell each visited site your address every time you connect to it, so it knows where to send the response packets.

    So basically it's the setup for the easiest kind of phishing imaginable. It's like automatically giving your email address to every site you ever visited, except this time it's your IPv6 address. Someone just has to create or pwn a popular site, and just record all the IP's that connect to it. Voila, that's a nice list to sell to the hackers. No more brute force scanning needed.

    We already have major corporations whose computers are spam bots. What makes you think none will host IP recording bots? How do you know none of the ecommerce sites or forums you visit could be pwned to record all those static IPv6 addresses?

    Or it just takes one bored intern working at a major ISP to run a sniffer and get a huge list of all static IPv6 addresses that sent or received anything through their pipe. Remember, idiots exist everywhere. One guy sold the whole list of AOL addresses to spammers, for example. So are you _sure_ noone will sell the list of allocated/known IPv6 addresses?

    And since it's static addresses (after all, the whole idea is to get rid of NAT, right? No more dynamic addresses and remapping, right?), you know that each address logged will be available for a long long time thereafter.

    Basically let's stop using the whole "we're secure by obscurity" concept to rest already. If there are other security mechanisms in place, fine, I want to hear about them. But "noone will find your IPv6 address" is _not_ security. If you want to talk security, you start from the most paranoid scenarios imaginable, not from wishful thinking.

    --
    A polar bear is a cartesian bear after a coordinate transform.
    1. Re:Security by obscurity doesn't work by kebes · · Score: 4, Informative

      Everything you've said is true...

      However, I don't think the argument is "the large IPv6 address space provides robust security" but rather "it's an extra roadblock to attackers."

      Switching to the large IPv6 address space doesn't mean that we can get lazy with patching our boxes, surfing safely, blocking ports, having strong passwords, and so on. However, it does mean, at least, that one vector of attack (port scanning) is no longer possible, or at least very difficult.

      All the workarounds and attacks you describe are certainly possible, but they mean extra effort on the part of the attacker, which induces a corresponding decrease in the frequency and success rate of attacks. And it's worth noting that in addition to the workarounds that the attackers will no doubt employ, there may very well be some clever usages of IPv6 to counter them. For instance, if I'm in control of 10^20 addresses, I may run my web browser from a VM whose IP address changes on every connection. So knowing the IP of my web-browser doesn't give you the IP of my file server, etc. Similarly the 10^20 - 4 addresses that I'm not using can be a very efficient honeypot for detecting attackers.

      To re-iterate: the large address space of IPv6 should not be viewed as "killer security"... but nor should we ignore that it will provide a (arguably minor) security advantage.

    2. Re:Security by obscurity doesn't work by MajroMax · · Score: 2, Informative

      The notion that your machine is only findable by raw brute-force scanning is pretty laughable. Yes, it's one of the easiest and most non-brainer methods, but it's not the only one.

      And on a dense IP space like IPv4, it's also the fastest method of scanning and spreading. For a worm propagating in its initial phases, its rate of growth is determined by how many "hits" it gets over N probes. By moving from IPv4 to IPv6, the search space goes from "very dense" to "highly sparse". If the worm still propagated by random probes, its growth rate would decrease by a factor of ~ 2^96 -- to essentially nil.

      This means that a hypothetical IPv6 worm would have to use some sort of passive scanning. This algorithm is much harder to implement, and it also implies that there must be a continuous connection path for the worm to spread. Since, for example, web connections (between servers) are isolated (foobar.com does not talk to yahoo.com does not talk to google.com), this implies that entire categories of worms are essentially impossible to develop.

      --
      "Evil company X is threatening to restrict our rights! Let's all get together to stop--OOOH! SHINEY!!!" -- AC
  26. NAT is bad by nsayer · · Score: 3, Interesting

    If you take the firewall out of the equation, there is still one bit of evil left with NAT - applications that may want to set up and announce a listening port don't know what the correct IP address is. Often times they have to resort to bizarre workarounds, like asking a known external service what their own address is. Very byzantine. If nothing else, moving to IPv6 removes that headache. And if you have two machines behind a 1:n NAT that want to open up port 80, you're hosed. Without NAT, that's not a problem anymore. You'll have to tell your firewall that connections to port 80 on those machines are OK, but that's nothing more than what you would have had to do to your NAT box anyway (except that one of them would have to be port 81 or 8080 or some such nonsense).

    I can't wait for the home networking routers that are so popular to implement 6to4. There's no reason they can't do that right now. Even if it were off by default, having it there would give people more options at little or no cost to the manufacturers. All of the major OSes out there shipping today support IPv6 natively.

  27. One word: by Kadin2048 · · Score: 3, Informative

    What'sdriving it now that wasn't driving it five years ago?

    SIP.

    Right now, most people haven't run into it, but there's no easy way to have multiple SIP VoIP "lines"* into your house, when you only have one IP address.

    * I mean "lines" in the POTS sense, of independent full-duplex telephone circuits, each with their own numbers. And yeah, I know you can get this if you use protocols other than SIP, but they have their own problems.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    1. Re:One word: by glomph · · Score: 2, Informative

      This is just plain FALSE. I have numerous SIP registrations coming from home, without using STUN. It works. One IP number.
      I have this going on about 5 servers, each with several SIP registrations (often to the same service) in place.

      SIP is idiotically complex, that is why IAX was invented, which all happens on one port.

      But the people writing clients, servers, and client/server combos (eg Asterisk) are actually more clueful than
      the vested interests that keep pushing IPv6 to a disinterested world. IPv6 reminds me of the Bell System's Picturephone, which
      I used decades ago. It worked fine. Many other video-phone solutions exist. The bottom line is, there's no screaming need for it.

      NAT is here to stay, just as is substandard overpriced 'broadband' service, at least here in Freedomland.

    2. Re:One word: by Vancorps · · Score: 2, Insightful

      huh? That answer makes no sense, that's like saying you can only have one ftp client at a time connecting through a public IP address. I routinely have not 2 but 10 SIP phones communicating over the Internet back into my home office without a problem. You have your control port and then you have your dynamic port which is opened to accomodate the data transferring back and forth.

      I'm not sure which SIP phones you're talking about that don't support NAT traversal. You might have had a point with H.323 but thankfully that is dying.

      As far as the number of lines, thats limited by the number of ports that can be opened. The only advantage to IPv6 in this sense is that I could service more lines over the Internet by associating additional external address with my servers, but if I have that many remote users they are probably at a temporary site which would then have a PBX on-site they could connect to.

      I think the real answer is that nothing is really driving IPv6 deployment since most companies don't want their internal computers to have external addresses. Securing it would not be trivial although a lot of methods that are employed for securing servers with external addressing could be deployed for workstations but that is a few orders of magnitude harder to setup.

  28. Re:NAT needed? by Paulrothrock · · Score: 2, Insightful

    Still doesn't mean I wouldn't want a NAT to offer a centralized location to manage my network. Right now I've got a NAT router forwarding most ports on my IP to my Mac Mini server (which has its own firewall), and a few gaming ports to my Powerbook. Managing a firewall in a single location would be a lot easier than managing a firewall on multiple devices.

    And how will IPv6 affect broadband? Right now I'm only allowed one dynamic IP. Would all broadband providers be forced to monitor individual IPs across their network?

    --
    I'm in the hole of the broadband donut.
  29. IPv6 offers that. by Kadin2048 · · Score: 3, Informative
    You wouldn't need to. IPv6 has the capability of having temporary addresses, where the client machine basically generates the last few bits (actually quite a few) of the address randomly. You can swap these addresses as frequently as you'd like (well, it will probably do Bad Things to the upstream routers if you change them too quickly, and it might be considered abusive at some point) in order to retain a level of anonymity that's greater than or equal to what you have with IPv4+NAT right now. (It's still not true anonymity, and isn't a replacement for systems like Tor, but it would make it close to impossible to figure out which device on your LAN the traffic is coming from, without compromising your LAN's router itself.)

    You might want to read this document from the IETF regarding privacy and IPv6. Ensuring privacy, or at least not eliminating it, was a major concern of theirs during the design of v6, and I think you'll find that your privacy is protected just as well or better than it is under IPv4 (which is to say, not really all that well, but if it gives you a warm fuzzy feeling to think so, enjoy).
    http://playground.sun.com/ipv6/specs/ipv6-address- privacy.html

    Therefore, in the future IPv6-based Internet, we expect many devices to have two kinds of IP addresses:

            * Unique, stable addresses, assigned in any of several possible ways (e.g., by manual configuration, by an address server like DHCP, or by auto-configuration using embedded, factory-assigned LAN addresses), for the purpose of being a target, and for use when initiating communication to other, trusted targets, such as targets within the same home or enterprise.

            * Temporary, transient addresses, such as those containing a random number in place of a factory-assigned serial number, for use when initiating communication to less trusted targets, such as public web servers.

    The choice of which kind of address to use when initiating communication is somewhat analogous to the choice that must be made when placing a telephone call in the presence of the "Caller ID" feature, i.e., whether or not to reveal the calling party's number to the called party. IPv6 addresses offer both choices.
    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  30. Broken Protocols by hweimer · · Score: 2, Insightful

    The problems don't come from having NAT or a stateful firewall, but from using poorly designed protocols. There is hardly a justification for using more than one TCP or UDP port, or dynamically assigned destination ports.

    For example, compare IPSec with OpenVPN: the former requires various UDP ports plus a completely new IP protocol, while the latter runs over a single UDP port. Now guess which one is much easier to get through a firewall.

    --
    OS Reviews: Free and Open Source Software
  31. Multiple reasons. by Junta · · Score: 2, Informative

    Well, for one, an administrative account may set up firewalling rules on a box to overrule attempts made by a normal account to open listening sockets (mitigate a number of attacks that rely on users running exploitable network apps or certain opportunistic attacks that listen for a queue to give a third party access). Performing a function along the lines of 'chown' for ports. The way many applications are written, unfortunately, implementing a more obviously chmod-like facility for ports in which the process impacted is made aware of the other layers policy, many existing applications would break.

    A good example could be synergy. Let's say I'm a user interested in the program. I'm semi-lazy so I like the quicksynergy front end. If you ever use synergy, you know that it doesn't in and of itself bother with meaningful authentication or encryption. Also, while the daemon itself supports being explicit in terms of which IP interfaces to bind to, the quicksynergy frontend does not expose the relevant configuration options. So while I know how to make use of ssh to port forward and authenticate for me, out of the box I still may leave synergy hanging out accepting any connections on the IP network. Considering synergy could effectively be a means to do keylogging (if user accidently moves mouse to wrong place for example), this is highly dangerous. Now, my distribution being fairly restrictive had placed hard and fast firewall rules in place to only allow blessed applications access in, except on lo. If I wanted to shoot myself in the foot with synergy, I'd now have to jump through some hoops and hopefully in the process learn why it's a bad idea. There probably exist poorly designed but useful network daemons that don't even allow interface-specific binding, in which case firewall rules bridge the gap. You can't always shut down a process that does foolish things in terms of listening on sockets you don't like without configurability to get around it, sometimes you need that process to run and the network to be denied by a layer the process can't mess with and even is unable to absolutely confirm exists.

    Yes, well-written applications should not do inappropriate things with listening sockets without the ability to lock it down. However, the world is full of not-so-well-written applications. The key is letting those apps think they are doing what they want with the firewall ruleset under the covers establishing the reality in ways the application cannot see or change. Good frontends for 99% of usage out there exist (OSX I believe makes it obvious when enabling a service it is also futzing some firewall rule to complement that, so it is intrinsically linked in the dialog most anyone will deal with).

    This is one aspect where I disagree with Ubuntu philosophy. Ubuntu philosophy is along your lines (don't bother with iptables rules by default, they just get in the way and the user knows what they are doing). This seems incongruous with the whole mission of linux for the masses that Ubuntu is about.

    --
    XML is like violence. If it doesn't solve the problem, use more.
  32. Re:NAT needed? by bunco · · Score: 2, Informative

    Services that require secondary/back-connections are not all that common. FTP is obviously the most common but even $40 firewalls can handle it. BT doesn't count since it uses well known ports (i.e. no negotiation of which ephemeral ports to leverage). The firewalls that are present in environments which use RPC are more than capable of intercepting portmapper requests and opening ports.

  33. Congrats. by Kadin2048 · · Score: 2, Informative

    I said "no easy way," not that it's completely impossible. You can do it, but traversing multiple SIP connections over NAT with a single public-facing IP address is almost stupidly complex and/or requires specialized SIP-aware NAT hardware, and it's far beyond what most people are capable of doing, just for the static case. I don't even want to think about the case of roaming wireless SIP clients, which is really the goal.

    IPv4 is going to die, and NAT along with it, it's just going to take a very, very long time. The main problem with IPv6 has nothing to do with its core functionality, the problem is that it had a serious case of featureitis (e.g. IPSec); if the IETF cut out the crap and just let people implement the long addresses without the rest of the stuff better left to the application layer, it would probably get implemented a lot faster.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  34. I think this discussion is misguided by einhverfr · · Score: 3, Interesting

    First, stateful filtering is stateful filtering. Although NAT's have to be stateful in some way, they are not stateful filters by themselves as you correctly point out.

    However, ipv6 has a major change which can cause massive headaches for firewall administrators: IPSec is now mandatory. IPSec provides two optional means of security: AH (which provides antitampering) and ESP (which provides encryption and antitampering). Neither of these were designed to pass through a NAT. The reason is not that NATs are bad design but rather that they break the end-to-end security that IPSec offers (i.e. any packet tampering invalidates the packet, and NATs by definition tamper with the packets).

    Sounds all right so far, but with ESP, the entire payload is encrypted. This means that a party in the middle cannot evesdrop on the connection (including the TCP headers). You don't know what ports are involved. You just know what two computers are involved. If you try to use FTP over an ESP-protected connection, however, the firewall will not be able to determine the state of the data connection. Same with H.323 (though I for one welcome the death of any OSI-decended protocol). In fact H.323 would become essentially impossible to allow via ESP to arbitrary hosts without opening up the whole network because of how the control protocol works.

    Hence you run into stateful filtering issues with ESP which are not possible to sort out. In practice, you have the choice of simply allowing ESP as a protocol or not allowing it, or possibly allowing it to a whitelisted set of end-points.

    Oddly enough this was not discussed in the article, which seemed to spend way too much time confusing NAT and stateful filtering.

    --

    LedgerSMB: Open source Accounting/ERP
  35. The real risks (if any) by sjames · · Score: 3, Insightful

    NATing firewalls serve two security purposes and several non security purposes.

    The non-security purposes are to multiplex routable IPs so that we don't have to have a public address for each network capable device. That's critical in IPv4, but irrelevant for IPv6 in the forseable future.

    The other is so that we can arbitrarily assign IPs to LAN devices (often with DHCP) and be happy. Auto-configuration in IPv6 renders that irrelevant as well.

    Now to the security purposes. First and foremost, they provide a default condition where incoming connections are summarily blocked while outgoing are permitted (after NATing). UDP is often configured similarly so that an outbound UDP packet opens a hole for replys to come in through (also after NATing). There is absolutely nothing in IPv6 to prevent the same rules from being configured minus NAT. As a side benefit, without UDP NAT randomizing the port number, two machines behind different firewalls may request a hole by sending UDP packets out iff the firewall is configured to permit it.

    The second purpose is to obscure the structure of the LAN behind the firewall including the number of machines on the LAN. It is notable that with IPv6 autoconfig it is entirely possible to find out how many devices are behind the firewall and who made the network devices.

    The real question is how valuable is obscuring the addresses of the machines on the LAN and how strongly does NAT guard against leaking that information.

    My guess is that NAT doesn't really do a lot there. If the firewall is well configured, most attacks behind it will be the result of users getting viruses and trojans from email and web browsing. A well crafted trojan can easily phone home using an outbound (permitted by NAT) connection and tell the attacker all about what's behind the firewall anyway. The trojan can then act as a socks proxy and allow the attacker to effectively have a machine inside the firewall anyway.

    In short, there's no reason for NAT at all in IPv6. Any real security benefits to NAT are side effects of it's primary purpose and easily enough implemented properly as security rules to provide security. Network security SHOULD be a process of adding deliberate and considered rules to a firewall. It should NOT be an ill-considered side effect of solving an entirely different class of problem.

    The real question is how much do those firewall rules spoil the idea of everything having a routable address. My opinion is not all that much. A firewall is simply a sort of rules server device that offloads filtering (ideally as a first line of defense backed up on the machine being protected) and centralizes policy, even in the face of mis-configured machines. Those rules would (hopefully) still be there without the firewall (who wants random people sshing or VNCing to their desktop machine), so the effect is more or less nil as far as routability goes. After all, even servers running without a firewall are often configured with hosts.(allow|deny).

  36. Article is misleading by CTachyon · · Score: 2, Informative

    The problems that the article describes — FTP, IM file transfers, etc. — have exactly the same problems under NATless IPv4 stateful firewalls. The Internet hasn't fallen over yet, therefore the problem is overblown.

    The solution in Linux has generally been application-specific kernel modules (ip_conntrack_ftp, ...) that tell the state engine (ip_conntrack) to expect related traffic. They might've finally added a user-mode interface since last time I looked, but that doesn't actually solve the problem since any user-mode program is still forced to sniff forwarded traffic for known applications.

    The more elegant solution would be for each application to indicate a related connection in a way that all stateful firewalls along the route could understand. Sort of like UPnP, except UPnP only talks to a single local NAT, not every firewall along the route. However, this more elegant solution hasn't yet been invented, for IPv4 or IPv6.

    --
    Range Voting: preference intensity matters