Slashdot Mirror


Yes, You Too Can Be an Evil Network Overlord With OpenBSD

badger.foo writes "Have you ever wanted to know what's really going on in your network? Some free tools with surprising origins can help you to an almost frightening degree. Peter Hansteen shares some monitoring insights, anecdotes and practical advice in his latest column on how to really know your network. All of it with free software, of course." From the article: " The NetFlow protocol was invented at Cisco in the early 1990s. It's designed to collect traffic metadata, where the basic unit of reference is the flow, defined as the source and destination IP address pair, the matching source and destination port for protocols that use them, the protocol identifier, time started and ended, number of packets sent, number of bytes sent, and a few other fields that have varied somewhat over the NetFlow versions. ... On OpenBSD, various netflow sensors and collectors had been available for a while when the new network pseudo device pflow debuted in OpenBSD 4.5."

25 of 49 comments (clear)

  1. Ho Humm by ClownPenis · · Score: 1

    Is this news? It is certainly nerdy.

    1. Re:Ho Humm by Anonymous Coward · · Score: 1

      Post it on soylentnews and see what we/us think...

    2. Re:Ho Humm by davester666 · · Score: 1

      You have to know this stuff and think it is for children if you want a job at the NSA.

      --
      Sleep your way to a whiter smile...date a dentist!
  2. Fake characters by SinaSa · · Score: 1

    Why is this post full of fake characters?

    --
    --
    The last digit of pi is four.
  3. All thanks to OpenBSD, eh? by Kichigai+Mentat · · Score: 5, Informative

    This isn't news. This isn't news at all! And it isn't even remotely shocking. TCP/IP tells you where a packet came from and where it wants to go, so that information is pretty easy to sniff, and originally Ethernet was just one big coax cable and everyone just shouted into, hoping the other machine would hear them, so it's no shock that something like this could sit on the network and collect all this data. There's nothing inherent about OpenBSD that makes this special.

    --
    Rawr
    1. Re:All thanks to OpenBSD, eh? by hobarrera · · Score: 1

      Plus, OpenBSD 4.5 is about ... 5 years old, or something like that!

    2. Re:All thanks to OpenBSD, eh? by buchner.johannes · · Score: 1

      Yes, all you need is tcpdump, punchcards and butterflies.

      What do you use then to limit the bandwidth to/from certain sources, and monitor the bandwidth of certain types of traffic, e.g. on Linux? A port of this would be useful. In my usage scenario, a few hundred users share a upstream network, and the traffic from a few (youtube, streams) can dominate the others, making web pages slow for the others. A fair distribution would be nice, but when fewer users are online, the full bandwidth should be available.

      I only know iptables, which is too low-level and static, and you can't give it into users/administrators hand (so many things can go wrong). For analysis I use ntop so far (which does hang sometimes, requiring restarts). A really interactive tool for traffic shaping would be needed.

      pflow/nsfen seems to be the right thing for BSD. Is there something good for Linux?

      --
      NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.
    3. Re:All thanks to OpenBSD, eh? by Anonymous Coward · · Score: 1

      OpenBSD 4.5 is when support for the NetFlow protocol was introduced... as mentioned in the article sourced by this /. entry.

    4. Re:All thanks to OpenBSD, eh? by Kichigai+Mentat · · Score: 1

      I haven't a clue. Maybe there is, maybe there isn't. All I know is that there's nothing about BSD itself that makes this possible, so it seems reasonable to assume that such tools exist or can be created on other platforms.

      --
      Rawr
    5. Re:All thanks to OpenBSD, eh? by Anonymous Coward · · Score: 1

      It isn't that no other tool exists, it's that it's done well compared.

      Same with pf vs iptables.

      Get a pf configuration file, and an iptables configuration file. Show the two to someone who doesn't know much about routing. They will likely be able to tell what the pf file is doing, and be clueless about the iptables file.

  4. Re:Really? by Anonymous Coward · · Score: 3, Insightful

    Still not nearly as useless as SlashBI, though!

  5. Metadata = Spying! by mythosaz · · Score: 3, Funny

    It's designed to collect traffic metadata, where the basic unit of reference is the flow, defined as the source and destination IP address pair, the matching source and destination port for protocols that use them, the protocol identifier, time started and ended, number of packets sent, number of bytes sent, and a few other fields that have varied somewhat over the NetFlow versions.

    Alert the authorities. The three-letter folks want to get some of this metadata!

  6. Good by eneville · · Score: 2

    Despite the other comments in this thread I'm going to stick my neck out and say "Excellent". OpenBSD pf/carp was an excellent piece of work, it's great to see the obvious being implemented in a nice way that makes sense. Why all the hate?

  7. oh yeah well wait until the hear about SNMP by trybywrench · · Score: 1

    just wait until they discover ( re-discover ) SNMP and all the hooks in there. Reminds me of the time our local news discovered, with horror, IRC.

    --
    I came to the datacenter drunk with a fake ID, don't you want to be just like me?
    1. Re:oh yeah well wait until the hear about SNMP by jon3k · · Score: 1

      Yeah I don't get it, NetFlow is news? We (and everyone else) has been using this in production environments for about 20 years.

  8. huh? by epyT-R · · Score: 1

    Wouldn't just about everyone who comes here know what netflow is? Why openbsd? netflow is available everywhere now.

    1. Re:huh? by wonkey_monkey · · Score: 2

      Wouldn't just about everyone who comes here know what netflow is?

      Not that I disagree that this isn't particularly newsworthy, but why would you assume most people who come here would know what netflow is?

      There was no entrance exam when I registered...

      --
      systemd is Roko's Basilisk.
  9. but... I'm already a network overlord... by David_Hart · · Score: 2

    Does this mean that I need BSD to become Evil.....?

  10. Re:but... I'm already a network overlord... by genner · · Score: 4, Funny

    Does this mean that I need BSD to become Evil.....?

    No but it helps.

  11. Dumb alignment joke incoming by gman003 · · Score: 1

    OpenBSD is for Evil Network Admins. OK, I can accept that. So what would Windows be for? Lawful Evil, I would assume. Same for OS X. Extending that, Linux might work for True Neutral, or maybe Chaotic Good. HURD is obviously Chaotic Neutral or Chaotic Evil.

    1. Re:Dumb alignment joke incoming by ruir · · Score: 1

      and iOS is for Elves...

  12. I ,for one, by Ukab+the+Great · · Score: 1

    welcome our new evil OpenBSD network overlords.

  13. Nobody is saying that this is "news" by plasticsquirrel · · Score: 3, Insightful

    This is an article helping people understand more about tools that ship in OpenBSD, and how they can be used in neat ways. Maybe you don't find anything informative or interesting, but I did and many others may too. Computing is a broad field, and not everyone has exposure to these networking tools. This is the sort of thing that should be on Slashdot, rather than "Why aren't there more female computer science majors so we can drive down wages?" type of "news items."

    --
    Systemd: the PulseAudio of init systems
  14. Worst way to do it... by evilviper · · Score: 1

    This is just a basic "How-to use Netflow on OpenBSD". Nothing more.

    IMHO, Netflow is interesting ONLY if you have no other way to gather info from hardware routers/switches. It's the only protocol likely to be supported.

    If, however, you can just mirror a port you're interested in (eg. the uplink), as you already would be doing with an IDS and similar, you don't need to bother with Netflow. Instead, you can get all the info you could want, with trivial ease, just by installing and running BandwidthD-2.x: http://bandwidthd.sourceforge....

    Anybody can set it up in 15 minutes, and immediately get a user-friendly web page with all the throughput and billing info you'd want, at any resolution you like. If you need in-depth detail, you just need to dive into querying the database directly.

    I'm anxiously awaiting software-defined networking taking over, and freeing us from all the horrible limitations and lock-in of expensive network gear. Until then, do everything you can with a computer, and traffic monitoring is absolutely one of those.

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    1. Re:Worst way to do it... by ruir · · Score: 1

      I prefer to use netflow if the equipment supports it. Port mirroring is all fine and dandy with low volumes of traffic, however for higher volumes you dont have much of a choice. Netflow tracks the transactions for you, whilst with mirroring with will have to deal with fragmentation and maintaining tables of TCP flows. And with mirroring you will received much more data. Netflow used to be a CPU hog on the router side, nowadays the load is barely notable, and they will send off summaries of the flows/transactions. The protocols is quite simple to use, at least up until v7. v9 upwards is unnecessarily complicated imo.