Slashdot Mirror


Ask Slashdot: User-Friendly Firewall For a Brand-New Linux User?

An anonymous reader writes "I am a new Linux user; I'm on 2nd day now. Currently I am trying out Ubuntu, but that could change. I am looking for a user friendly firewall that I can set up that lets me do these things:1) set up a default deny rule 2) carve out exceptions for these programs: browser, email client, chat client, yum and/or apt. 3) carve out exceptions to the exceptions in requirement 2 — i.e. I want to be able to then block off IPs and IP ranges known to be used by malware, marketers, etc., and all protocols which aren't needed for requirement 2. It also needs to have good enough documentation that a beginner like me can figure it out. Previously, I had done all of the above in AVG Firewall on Windows, and it was very easy to do. So far, I have tried these things:1) IPTABLES — it looked really easy to screw it up and then not notice that it's screwed up and/or not be able to fix it even if I did notice, so I tried other things at that point... 2) searched the internet and found various free firewalls such as Firestarter, GUFW, etc., which I weren't able to make meet my requirements. Can someone either point me to a firewall that meets my needs or else give me some hints on how to make firestarter or GUFW do what I need?"

187 comments

  1. Shorewall by ttucker · · Score: 4, Informative

    Shorewall is a pretty good iptables configuration tool.

    1. Re:Shorewall by Anonymous Coward · · Score: 0

      I can echo support for this tool. I use it on a wide variety of machines (including my laptop). It's very easy to setup and maintain.

    2. Re:Shorewall by Durrik · · Score: 4, Insightful

      Shorewall is very nice. For the user I would suggest using it and installing webmin to configure it. Webmin does an OK job configuring shorewall which is already pretty easy to set up, just it can be fairly confusing for the first timer with all the config files. After the first few times with webmin you learn how to do it with the command line and vim.

      Bastille-linux is also something that was fairly easy to use in the past. I used that before shorewall, but I haven't used bastille for years, must be a least a decade so I don't know what the current state of it is.

      --
      Software Engineer & Writer of Military Science Fiction and Fantasy Blog: petermwright.com Twitter: WrightPeterM
    3. Re:Shorewall by Anonymous Coward · · Score: 2, Funny

      Shorewall is very nice. For the user I would suggest using it and installing webmin to configure it. Webmin does an OK job configuring shorewall which is already pretty easy to set up, just it can be fairly confusing for the first timer with all the config files. After the first few times with webmin you learn how to do it with the command line and vim.

      So let me sort this out, in order to easily configure iptables, shorewall is a good solution, but to configure shorewall, I will want to use webmin. So what do I need to install to configure webmin?

      No wonder why the year of the linux desktop will never be.

    4. Re:Shorewall by dreamchaser · · Score: 5, Funny

      So what do I need to install to configure webmin?

      The IQ of a chimpanzee should suffice.

    5. Re:Shorewall by Jmc23 · · Score: 1

      Is that a cold press extraction or your basic toxic-solvent + centrifuge?

      --
      Don't complain about syntax, grammar, or spelling. There is no.hell like input on android.
    6. Re:Shorewall by ttucker · · Score: 3, Informative

      So let me sort this out, in order to easily configure iptables, shorewall is a good solution, but to configure shorewall, I will want to use webmin. So what do I need to install to configure webmin?

      You might be surprised to find that using several layers of abstraction is relatively common in the computer world, and that your much vaunted probably does something very similar.

    7. Re:Shorewall by Antique+Geekmeister · · Score: 2

      Go back to the original spec. The poster wants a stable, sophisticated, flexible firewall. They also want it to be easy to configure. These are distinct, and to some extent contradictory requirements. And yes, for a new admin, the built-in "iptables" and most Linux firewall tools are confusing. Shorewall has a good reputation as robust and stable, and Webmin has an _excellent_ reputation as being a tool that makes system management much, much, easier.

      In fact, testing webmin with just "Linux Firewalls" configuration tool built into it might be enough.

    8. Re:Shorewall by Lumpy · · Score: 1

      Then he needs to install DD-WRT on a router in front of his PC.

      --
      Do not look at laser with remaining good eye.
    9. Re:Shorewall by rahvin112 · · Score: 1

      With our without poop throwing?

    10. Re:Shorewall by dreamchaser · · Score: 1

      The throwing of fecal matter is optional. That's the beauty of open source; it allows the user to have a choice.

    11. Re:Shorewall by Anonymous Coward · · Score: 0

      "The IQ of a chimpanzee should suffice."

      Domestic or H-1B Chimpanzee? I need to spec out a position requirement for HR.

    12. Re:Shorewall by klui · · Score: 3, Informative

      You a word there.

      I think you meant Windows does the same thing? Indeed, netsh is used to manage firewall rules on the command line level, and the Windows firewall snapin uses netsh. There are 3rd-party programs that replace the snapin or make it more intuitive like wfc from BiniSoft. I'm not sure if it replaces the regular snapin or runs on top of it.

    13. Re:Shorewall by Hanzie · · Score: 2

      Then he needs to install DD-WRT on a router in front of his PC.

      +1 insightful.

      Even though that's not what he asked for, that's the best suggestion so far. Yes, the parent poster obviously realizes that firewalls are still needed on the PC's. Castles need moats as well as walls.

      He's worried about security, and this will *HELP* do the job on all his PC's, and automatically provide some protection to every box that happens to connect to his network. It will also do it's job no matter what gets plugged in, and even provide some protection if he happens to plug in some malware (at least it'll have a tough time phoning home).

      Thanks.

      --
      ********* sig: If you don't like the law, get filthy stinking rich, and buy a better one.
    14. Re:Shorewall by ttucker · · Score: 1

      I added some XML style brackets, oops. It said something like, "You might be surprised to find that using several layers of abstraction is relatively common in the computer world, and that your much vaunted %whatever firewall you like% probably does something very similar."

    15. Re:Shorewall by Anonymous Coward · · Score: 0

      don't use dd-wrt. it's tied to closed broadcom chips and subsequently has to use old "supported" kernels. get an atheros based router (tl-wdr3500 for instance) and put the barrier breaker release of openwrt on it. luci has been updated and is very nice now, too.

    16. Re:Shorewall by Zontar+The+Mindless · · Score: 1

      < and > are your friends.

      --
      Il n'y a pas de Planet B.
    17. Re:Shorewall by Antique+Geekmeister · · Score: 3, Informative

      _This_ is why many people hate asking It for help. Rather than answer the questions as stated, the poster is being told to buy more hardware and learn to program it himself by fan boys of half a dozen different toolkits, many of them requiring new hardware, without a good guideline to compare them, and many of them that require quite a bit of learning to master. Many of the suggestions are completely unsuitable to many environments: carrying a spare router around to put in front of a laptop is impractical. And even with a commercial grade firewall router in _front_ of a local network, that provides no protection against internal attack by infected laptops or houseguests:. And let's be honest, many households do leave their home wireless networks open to visitors.

      The built-in iptables in most Linux systems is not *bad*, and quite suitable for home use. I just took a look at the current release of webmin, and the interface to manage iptables is really quite good: just remember to not accidentally cut off the webmin interface while firewalling off other traffic.

    18. Re:Shorewall by Anonymous Coward · · Score: 0

      Meds are your friend (@ the nuthouse) Mr. "PhRooT-LooP" http://slashdot.org/comments.p...

    19. Re:Shorewall by motorhead · · Score: 0

      With, obviously.

      --
      Employee Of the Month - Cyberdyne Systems Corporation - September 1997
    20. Re:Shorewall by Anonymous Coward · · Score: 0

      why do all these posts sound so whiny,plaintive and unctuous?

    21. Re:Shorewall by lsatenstein · · Score: 1

      AFAIK, Fedora 20 has a very good firewall offering, and it is presented as a dynamic software, meaning that you can make changes to network protections, etc., on the fly.

      --
      Leslie Satenstein Montreal Quebec Canada
  2. Astaro / Sophos by therealkevinkretz · · Score: 0

    I've used Astaro for years and been very happy with it. It includes many free features (VPN is great) and there are other features you can add for a fee. Sophos purchased it a couple of years ago and still have a very featured free version.

    http://www.sophos.com/en-us/pr...

    1. Re:Astaro / Sophos by evenmoreconfused · · Score: 1

      Totally concur. Best product I've used in decades.

      --
      No. Well...maybe. Actually, yes. It really just depends.
    2. Re:Astaro / Sophos by evenmoreconfused · · Score: 1

      Totally concur. Best product I've used in decades.

      That being said, it runs on a separate box and supports things like balancing multiple uplinks and fail-over, so it's a wee bit beyond the stated requirements.

      --
      No. Well...maybe. Actually, yes. It really just depends.
  3. I always considered BSD's PF more logical by Anonymous Coward · · Score: 0

    And more user-friendly to set up. It should be available for all decent Linux dists, too.

  4. Firestarter by Anonymous Coward · · Score: 0

    Unless im mistaken...I may very well be....Firestarter is just an interface to iptables.

    K

  5. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  6. FreeBSD/PF by Anonymous Coward · · Score: 0

    PF speaks almost proper english like you and me.

  7. No more iptables by Anonymous Coward · · Score: 0

    The latest beta of Ubuntu uses kernel 3.13 which does away with iptables. (Which is probably going to confuse tons of admins too. lol.)

    1. Re:No more iptables by Anonymous Coward · · Score: 0

      is it now nftables?

    2. Re:No more iptables by philip.paradis · · Score: 1

      As I mentioned in a previous /. story regarding nftables, iptables isn't "going away." You neglected to mention that nftables provides backward compatibility with iptables, while allowing significant new functionality. A huge amount of infrastructure utilizes iptables rules, and nftables isn't intended to break that.

      There is no confusion of tons of admins here.

      --
      Write failed: Broken pipe
    3. Re:No more iptables by unixisc · · Score: 1

      So does nftables do what the submitter asked?

  8. User friendliest: by Anonymous Coward · · Score: 5, Funny

    I would suggest installing WINE and then running Windows Firewall.

    1. Re:User friendliest: by JohnVanVliet · · Score: 1

      I would suggest installing WINE and then running Windows Firewall.

      WTF !!! are you "fracked in the head " ?
      iptables is way better

      anyway you could not even do that

      --
      "I don't pitch OpenSUSE Linux to my friends, i let Microsoft do it for me
    2. Re:User friendliest: by Anonymous Coward · · Score: 5, Funny

      case $- in
      *i* ) # Interactive shell
                      if [ -f ~/noob ]; then
                      source ~/noob
                      fi ;;
      esac
                      if [ -z "$DISPLAY" ] && [ $(tty) == /dev/ttyx ]; then
                      whoosh
                      fi

    3. Re:User friendliest: by Lodragandraoidh · · Score: 1

      Do not feed the trolls.

      --

      Lodragan Draoidh
      The more you explain it, the more I don't understand it. - Mark Twain
    4. Re:User friendliest: by WindBourne · · Score: 1

      So, which do you work for: NSA? Russia? China? MS?

      --
      I prefer the "u" in honour as it seems to be missing these days.
    5. Re:User friendliest: by Zontar+The+Mindless · · Score: 1

      Do not feed the trolls.

      I don't think that phrase means what you think it does.

      --
      Il n'y a pas de Planet B.
    6. Re:User friendliest: by Anonymous Coward · · Score: 0

      Do YOU know what "PhRooT-LooP' means? Sure you do http://slashdot.org/comments.p...

    7. Re:User friendliest: by Confusador · · Score: 1

      Geek Squad

  9. Experts Recommend by Anonymous Coward · · Score: 1

    Something based on Windows XP if you value your family's security.

    1. Re:Experts Recommend by Anonymous Coward · · Score: 2, Funny

      This expert trusts Windows 8 for my family's security. All the UAC prompts frustrate the would-be penetrators so they move on to other targets. And since there's no way to find the shutdown button, it provides my loved ones with rock solid, around-the-clock protection from evildoers.

      Microsoft. Because your family's well-being shouldn't be entrusted to dirty hippies.

  10. OpenBSD by Anonymous Coward · · Score: 1

    If you are willing to learn how to use a text editor, OpenBSD's pf is a pretty great home firewall. I run it on little Soekris box at home.

    You will have a little learning curve, but you'll be getting a real firewall out of it.

    The pf documentation is pretty good, and there are a ton of tutorials out there. Calomel.org has what is possibly the best one.

  11. gufw by Anonymous Coward · · Score: 0

    The gufw will do most of what you want. If you need finer control then use the very friendly ufw command line tool. UFW has a great manual page so start there.

  12. some notes by taikedz · · Score: 1

    I know you've said you're trying to avoid screwing it up, but if you want, the CentOS wiki is pretty good for explaining what and why, and since it's a kernel firewall, it applies to Ubuntu too. In fact, I suspect all other "firewall tools" are basic GUI frontends to iptables. If you are indeed concerned about firewalling (though not quite as concerned as crypto-specialists), you probably at least want to have a go at it manually with some easy to understand notes

    When in doubt, try it on a virtual machine of course.

    I put together a general, documented, script that I run on all my new installs; comment out any lines you don't need. nixCraft has some notes on restarting the Ubuntu iptables/firewall under what I assume is upstart.

    --
    -- "Simplicity is prerequisite for reliability." --Dijkstra
    1. Re:some notes by gbjbaanb · · Score: 1

      I agree - all the 'firewalls' are really just iptables configuration guis.

      In the day I used to use APF, a text-based configuration tool. It was very easy to use.

    2. Re:some notes by Anonymous Coward · · Score: 0

      I'm using a mac, and after trailing a commercial mac specific firewall I tried to find an open source UNIX one.

      What I found is none of the UNIX ones work the way I wanted. I don't want to block specific types of network traffic, I want to block specific processes.

      I'm fine with apt-get talking to a package server for example, but I don't want *anything else* on the system to be able to communicate with those servers. A web browser can talk on port 80, but nothing else. Etc etc.

      Also, when something is blocked... I want a GUI popup offering a chance to create an exception.

  13. UFW by Anonymous Coward · · Score: 0

    The Bulit in Firewall in Ubuntu UFW https://wiki.ubuntu.com/UncomplicatedFirewall is great, and very straight forward. If you find it not be so, Linux might not be for you.

  14. Why? Is it really necessary? by tqk · · Score: 3, Insightful

    I can understand trying to wall off Windows from what you can, but with non-Windows you just make sure you only enable services that you want. Use good passwords, lock it down so only what you want running can run, and don't listen to the script kiddies knocking on your door. Crank up the stereo.

    I assume your box hangs off a router of some sort? It's probably all you need for a firewall.

    --
    "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.
  15. m0n0 by Anonymous Coward · · Score: 0

    Mono, BSD based but the UI it is great. Bet NAT/port forwarding interface i've seen.

  16. Endian or Untangle by Anonymous Coward · · Score: 0

    Can't get any easier with an easy to use web interface

  17. Re:Why? Is it really necessary? by Anonymous Coward · · Score: 0

    I was going to troll with a 'Linux is so secure it doesn't need a firewall' comment, but a serious poster beat me to it.

  18. Wrong paradigm here by emoreau · · Score: 1

    Ok, seems like you're trying to do things the windows way, i.e. blocking outbound connections based which application is running. Things are not done that way on Linux. Outbound connections are open and most of us are fine with it.

    1. Re:Wrong paradigm here by Anonymous Coward · · Score: 0

      So why are you perfectly fine with it on Linux and conversely why should outbound connections be blocked by default on Windows?

    2. Re:Wrong paradigm here by Lesrahpem · · Score: 3, Insightful

      The parent poster is correct. Windows and Linux are totally different animals in regards to firewalls. There is only one firewall for Linux and it is built into the system. IPTables is how the firewall is configured. All other tools are just front-ends or wrappers for IPTables.

      IPTables doesn't have support for application-based firewalling. You can do that kind of thing using something lilke the Grsecurity patch for the kernel, but it is not for beginners.

      Grsecurity will let you create policies exactly like what you're talking about and then some. For example, it will allow you to create a policy limiting which files and folders a given program can access. To be specific, on my machine I have a policy that Firefox can only write data to it's own folders and to my Downloads directory, and can't execute/run any files inside those folders. That way, if somebody hits me with a drive-by download or something it simply won't work.

    3. Re:Wrong paradigm here by emoreau · · Score: 1

      You got me there. Those are really convincing arguments. You`re the man!

    4. Re:Wrong paradigm here by emoreau · · Score: 2

      I have to add that some of this stuffed is handled by SELinux. If you wan't an CGI script to be able to send an email on a Red Hat derivative, you have to explicitly add the rule to your SELinux configuration

    5. Re:Wrong paradigm here by emoreau · · Score: 1

      Sorry I meant stuff, not stuffed

    6. Re:Wrong paradigm here by amorsen · · Score: 1

      This is changing though. If you run a distribution with SELinux enabled, many applications and daemons are likely to be blocked from making outbound connections. Changing the rules is somewhat difficult though; distributions generally assume that the user does not have a clue when asked whether frobnitzd should be allowed to connect to Slashdot, so there is no GUI for asking the user.

      AppArmor can do it too, and the configuration is perhaps a bit easier. I have no idea how much Ubuntu restricts by default.

      --
      Finally! A year of moderation! Ready for 2019?
    7. Re:Wrong paradigm here by emoreau · · Score: 1

      I would also like to say that I spend most of my days writing software that use network connections, so I would constantly be tweeking that damn firewall if I was using this kind off configuration.

    8. Re:Wrong paradigm here by DanielOom · · Score: 5, Funny

      Nothing wrong here: the Windows firewall is designed for keeping malware inside the PC and out of the Internet, the other firewalls are designed for keeping malware on the Internet out of the computer.

    9. Re:Wrong paradigm here by emoreau · · Score: 1

      Because the malware situation on Windows got out of hand because of poor initial security decisions.

    10. Re:Wrong paradigm here by emoreau · · Score: 1

      Yes, that`s why distribution now ships with less strict configurations. System daemons are thighly controlled, but end-user stuff is much more relaxed.

    11. Re:Wrong paradigm here by stevey · · Score: 2

      Actually iptables does have support for matching based on the process. You might have run commands that include "-m recent", or similar. The "-m" is used to specify a module-name, and there are many matching modules available and included by default.

      For example on a CentOS system you might allow your webserver to make outgoing SMTP connections via something fun like this: "iptables -A OUTPUT -m owner --cmd-owner httpd --dest-port 25 -j ACCEPT". (Why CentOS? Because it matches the command against HTTPD. On Debian systems the webserver process is more typically called 'apache2'.)

      Hope that helps.

    12. Re:Wrong paradigm here by emoreau · · Score: 1

      That's the whole point

    13. Re:Wrong paradigm here by Lesrahpem · · Score: 2

      For example on a CentOS system you might allow your webserver to make outgoing SMTP connections via something fun like this: "iptables -A OUTPUT -m owner --cmd-owner httpd --dest-port 25 -j ACCEPT". (Why CentOS? Because it matches the command against HTTPD. On Debian systems the webserver process is more typically called 'apache2'.)

      The cmd-owner match was removed in kernel 2.6.14 because it was broken with SMP.

    14. Re:Wrong paradigm here by PetiePooo · · Score: 1

      Ok, seems like you're trying to do things the windows way, i.e. blocking outbound connections based which application is running. Things are not done that way on Linux. Outbound connections are open and most of us are fine with it.

      The Window Firewall, the original BlackIce for Windows, and AVG as well, I believe, all fall in the category of Application Firewalls, as they base their actions with knowledge of the application holding the IP connection endpoint. IPtables is a Stateful Firewall, so named because it relies solely on the connection's state, without regard to the application at the sending or receiving end of the connection.

      The Application Firewall link above actually does have some suggestions about how such things can be handled on Linux using utilities others have described. Mandatory Access Control tools such as SELinux and grsecurity can allow or deny access to resources (such as the network interface) to applications, but I don't believe they have fine-grained controls for conditional access based on IPs or ports.

      None of these are as easy to use as AVG for Windows is.. (This could be the new definition of "understatement!") In fact, I would like to think I know Linux quite well, have used it as a desktop and server platform for years, have written patches for kernel modules, and can configure a solid IPtables firewall ruleset from scratch, but AppArmor and SELinux still scare me...

      There's a link here describing how to mark packets based on an application's uid (user). This might be a basis for controlling permissions per app, but you're talking about a very complex IPtables ruleset. Definitely not for someone only two days into their Linux journey.

    15. Re:Wrong paradigm here by stevey · · Score: 1

      Interesting thanks.

      strings says I have the user-space component on my system, but it's been a long time since I used it so I didn't realize the kernel-support might have gone away.

    16. Re:Wrong paradigm here by emoreau · · Score: 1

      As a matter of fact, on my local network, I have no problem leaving inbound connections open as well, because firewalling is provided by my router. When you look at early litterature, a firewall was at first a network configuration, not an application or a kernel module.

    17. Re:Wrong paradigm here by xvan · · Score: 1

      The Linux way would be to have a group per application, run the application with 'sg', and have an iptables rule per that group... SELinux should has fine grained networking, just google them.

    18. Re:Wrong paradigm here by xvan · · Score: 1

      have*

    19. Re:Wrong paradigm here by allo · · Score: 1

      Blocking outbound on per-application basis is needed, if you do not trust your software. But untrusted software can evade this anyway. Just call "firefox http://malwareserver?mydata=i+... 2;kill %1"
      So, how does the "~/bin/untrusted-download" firewall rule protect you now?

      There is one simple rule for untrusted software: Do not run it.
      Linux makes this easy, you need the execution bit, a download or an e-mail attachment will not have it by default. And Linux provides you with a big trusted software repo. You do not need to visit shady downloadsites, which bundle the apps with a strange installer.

    20. Re:Wrong paradigm here by allo · · Score: 1

      of course the cmdline needs to be:
      'firefox "malwareserver/?mydata=i+got+him+&username=foo&loggedpassword=bar&;sleep" '

      stupid slashdot

    21. Re:Wrong paradigm here by allo · · Score: 1

      argh, stop messing my posts ...

      firefox "malwareserver/?mydata=i+got+him+&username=foo&loggedpassword=bar"& sleep 2 && kill %1

    22. Re:Wrong paradigm here by allo · · Score: 1

      cgroups may help.

  19. Poster asking about GUI frontend software by caseih · · Score: 3, Interesting

    Many of the posts so far direct the original poster to dedicated firewall appliances or distributions. If I read the summary correctly, the OP is simply looking for a good GUI to manipulate the firewall rules built into the kernel of all modern Linux distributions.

    I can't vouch for any of them, but GUI frontends include guardog, lokkit, firestarter, and probably others. They are all in various states of development and maintenance.

    Part of what the user wants to do (firewall per app) wasn't possible in the past with iptables (per-gid blocking was easy), but I believe it's now possible. A primitive daemon, called Leopard Flower, seems to offer this functionality: http://leopardflower.sourcefor...

    From what I can see, the most promising, integrated, easy-to-use firewalling GUI software going forward is Fedora's firewalld and it's accompanying GUI. I know firewalld is available on Ubuntu (and its command-line interface). I'm not sure about the GUI part. Perhaps someone familiar wit Ubuntu can comment. Here's an article on installing it in Mint, so I assume it's similar in Ubuntu: http://www.linuxbsdos.com/2013...

    From what I can see, firewalld and firewall-config hit the sweet spot for most desktop users. I'd never use it on my router, but for a desktop, it works pretty well and is under active development. I imagine it will sport per-application feature soon, if it doesn't already.

    1. Re:Poster asking about GUI frontend software by phantomfive · · Score: 1

      Not only that, iptables isn't that hard, and you feel good after you figure it out. It's not THAT hard to mess things up, you can always just clear your iptables and start over if you really break things. Problem solved.

      --
      "First they came for the slanderers and i said nothing."
    2. Re:Poster asking about GUI frontend software by Anonymous Coward · · Score: 0

      you can always just clear your iptables and start over if you really break things

      Unless you're working remotely and happen to disable your connection, in which case it becomes a call or drive to the data center to fix it. That can be avoided by using a script to reset the rules to a sane configuration automatically every few minutes, and disabling the script once you're happy with everything.

  20. www.fwbuilder.org by Anonymous Coward · · Score: 0

    I have used Firewall Builder for this and it worked well.

    1. Re:www.fwbuilder.org by Richy_T · · Score: 1

      Same here. If you're used to checkpoint firewall, it's an easy transition. Worked perfectly when I had to duplicate a firewall config for a firewall-on-a-floppy firewall (albeit it was done manually and not automatically).

    2. Re:www.fwbuilder.org by Richy_T · · Score: 1

      I do handcraft firewall rules for my home Slackware install though. It just seems the right thing to do :)

      Not so much since I moved to a Tomato based internet router though. It was probably never a good idea to have the email, web server etc on the same system as the router.

    3. Re:www.fwbuilder.org by skids · · Score: 1

      Though the leading edge of development of end-user level UI for firewalls is on embedded projects like OpenWRT, firewall builder definitely deserves a look. It's close to many of the tools targeted at small-network administrators, like Cisco's ASDM for their ASA product. It may take a short time to learn about service objects and network objects, but that time will be payed back many times over.

      The biggest issue an end-user will face with it is setting up the backends as it is less than totally flexible in that department (it has a particular deployment model in mind and is missing a couple hooks in certain places that prevent it from being used for certain purposes.) That said, it is very capable of allowing one to change backends easily (e.g. switch from one brand of firewall to another) with minimal adjustments.

  21. Re:Why? Is it really necessary? by abhi_beckert · · Score: 5, Interesting

    You're making the assumption that all the bad stuff is outside the firewall and nothing evil ever gets in.

    An example of how I use my firewall, is I block my email program from making any network connection other than imap/smtp. If it tries to make any other network connection (eg: downloading images from a web server), the firewall blocks it.

  22. ufw, ipfire, ddwrt by mspohr · · Score: 1

    Lots of options:
    http://www.ipfire.org/
    ufw can be installed from apt-get (no gui)
    ddwrt runs on many routers and has lots of features... don't need a full PC.

    --
    I don't read your sig. Why are you reading mine?
  23. pfsense by michrech · · Score: 2

    I just jumped into playing with pfsense. It's based on FreeBSD, but it was very easy for me to get in and mess around with. :)

    --
    bork bork bork!
    1. Re:pfsense by laffer1 · · Score: 1

      This doesn't help him. He wants windows firewall or norton internet security level of firewall (but for linux) for his own computer.

      I'm a huge fan of pfSense, but it's not a desktop OS.

      Honestly, I think the OP needs to realize that even today, Linux requires a little command line foo. Look at the official ubuntu documentation and turn on the firewall. Blocking incoming traffic is sufficient on Linux most of the time. There's much less malware that will connect out and cause harm.

      See https://help.ubuntu.com/12.04/... if you want to get into some gritty details. This is the server guide, they may have a more user friendly desktop guide, but it should still be useful.

  24. The days of innocence have ended by Anonymous Coward · · Score: 1

    Linux's "outbound connections are open" paradigm was designed in the good old days of innocence, before malware grew to current levels and before applications were phoning home.

    In today's world, that early innocence is badly misplaced. Third party applications need to be restricted to nothing more than the outbound connections which the user permits.

    1. Re:The days of innocence have ended by emoreau · · Score: 1

      If you run applications that are included with your distribution, it is pretty safe to assume that they don't have to be blocked. If you run third-party applications, you will probably want to allow them to do their job and let them open wathever outbound connection they want to. Most user will allow anything anyway. Most people don't know enough to be able to decide what to permit.

    2. Re:The days of innocence have ended by Anonymous Coward · · Score: 0

      sum=0

  25. what he actually wants to configure is application by Anonymous Coward · · Score: 0

    he wants a global way of configuring which applications have the capability to connect to what servers or open what ports. This is a different meaning of 'firewall' than is used in the Unix world.

    AFAIK there's already some capability enforcement prohibiting some programs from accessing the Internet in modern Linux distributions, but, I don't really know how it's configured either.

  26. Untangle by Anonymous Coward · · Score: 0

    It is easy to install and set up, the free version does everything you want, and it can even run dns and dhcp for you.

  27. Re:Why? Is it really necessary? by Assmasher · · Score: 1

    1997 called and wants its comment back...

    --
    Loading...
  28. Re:Ask Slashdot? by Anonymous Coward · · Score: 0

    You shouldn't have to read a HOWTO to setup a simple firewall. It should be a "click-click-done" job.

  29. Hmmmm by jawtheshark · · Score: 1

    I had done all of the above in AVG Firewall on Windows, and it was very easy to do.

    That's the part I actually doubt. All firewalls configured by normal users I've seen in my lifetime were so much of a mess, that they had more holes than a swiss cheese on were so strict they became unusable
    I'm also quite surprised about "ranges known to be used by malware, marketers, etc...". If those were really even halfway public knowledge, there would be no malware of "marketing" problem on the Internet.
    This one should get his medication, and think his strategy over.

    --
    Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    1. Re:Hmmmm by Spad · · Score: 1

      Well, there are lists of ranges known to be used by malware, etc. such as this: http://www.spamhaus.org/drop/ - it's not that it's a list of *all* ranges used for those things, just that these ranges are known *only* to be used for those things and so can safely be blocked outright.

      Most of the rest of it comes from random compromised residential machines or hosted boxes and so is hard to block other than when you find a really shitty host like Nobis/Ubiquity who just don't care about shutting down compromised machines on their networks.

  30. Re:Why? Is it really necessary? by Anonymous Coward · · Score: 0

    I haven't had the need to set up a separate firewall since...well since I started using Linux. On Winders, it was essential to have a good 2 way firewall. Never had a Linux computer hacked that I noticed. (have had Windows boxes hacked to the point they'd hardly run.)

  31. fwbuilder by lkcl · · Score: 1

    i have a bit of a problem comprehending firewall rules (and deploying them). i asked around (just as you did) and got the advice "use fwbuilder". i liked it so much that i ended up writing a python script that parsed its xml files and generated HTML output so that i could clearly see what it was doing.

    but, despite admitting that i am not a firewall rules expert, i do have to say that nothing substitutes for actually studying what firewall rules are and understanding them properly. i say that from the position of being a person who, whenever they need firewall rules, does an internet search and cuts/pastes the results successfully into an amalgam that "does the job", but it "does the job" with the concern always being in the back of my mind that i probably completely messed it up...

  32. Re:Why? Is it really necessary? by tqk · · Score: 1

    ... you just make sure you only enable services that you want.

    I block my email program from making any network connection other than imap/smtp.

    Is there an echo in here?

    --
    "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.
  33. pfSense by JRoth25 · · Score: 2

    You may want to have a look at: https://www.pfsense.org/ Very good option...

  34. Firewall Builder by Anonymous Coward · · Score: 0

    This - http://www.fwbuilder.org/

    Is been around for ages, is really easy to use and supports a whole bunch of stuff like iptables and pf firewalls.

  35. No love for Untangle? by Anonymous Coward · · Score: 0

    Untangle is probably the easiest I've come across. The free basic package (Lite) even comes with openvpn: https://www.untangle.com/store/lite-package.html

    Just a suggestion. I'm sure someone here will recommend the right solution.

  36. You have ubuntu... by Anonymous Coward · · Score: 0

    So... https://wiki.ubuntu.com/UncomplicatedFirewall

    The UFW command does wonderful things.

  37. Go back to Windows by Anonymous Coward · · Score: 0

    ...we don't want you to get hurt !

  38. Re:Why? Is it really necessary? by tqk · · Score: 1

    Never had a Linux computer hacked that I noticed. (have had Windows boxes hacked to the point they'd hardly run.)

    If this box was supplying connectivity to a LAN of Windows boxes, that would be a different thing. That isn't the case here.

    --
    "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.
  39. You're a "brand new Linux user" by 93+Escort+Wagon · · Score: 1

    Why not take this opportunity to learn how iptables works and how to edit the text-based configuration? The basics are pretty easy - you can figure out how to allow ssh, for example, and get up and running without knowing something like how to set up vpn traffic forwarding.

    Isn't part of the point to learn how Linux works? It's not just like Windows, but that can be a plus. Once you get past the "AAH, I DONT HAVE ANYTHING TO CLICK ON" stage, you may just find it's actually easier! Personally, having done both, I'd much rather admin Apache than IIS - and Windows is shifting more towards the Linux paradigm at the server side anyway.

    --
    #DeleteChrome
    1. Re:You're a "brand new Linux user" by Spad · · Score: 1

      Because, like he said, iptables is easy to screw up without realising it and you don't really want to take that approach on a machine you care about and are using day to day, you ideally want kind of abstraction layer to break you in gently where there's less chance of fucking it up and you can learn how it works at a sensible pace.

    2. Re:You're a "brand new Linux user" by 32771 · · Score: 1

      You could also set up some kind of DMZ where you use a router with firewalling capabilities between broadband and your home network. This gives you some security now while you are still experimenting. Also it is a good idea to not trust your router and set up your own firewall in addition to it. Beyond that you may also protect us from your experiments that way.

      You can also try to scan/hack your internal firewall with tools like nmap to see how it is holding up. Here is a list of a few links:
      http://www.ietf.org/rfc/rfc791...
      http://www.netfilter.org/index...
      http://nmap.org/
      http://www.wireshark.org/

      Also there is user friendly in case you have been missing it so far, http://ars.userfriendly.org/ca...

      --
      Je me souviens.
  40. for blocking ads and malware by Anonymous Coward · · Score: 0

    You might consider using a hosts file instead of or in conjunction with. http://winhelp2002.mvps.org/ho...

    1. Re:for blocking ads and malware by Anonymous Coward · · Score: 0

      There is no excuse for using a hosts file to block malware on linux, and very little for windows. Plus, that list describes domains that serve windows malware, dipshit.

      In Linux-land, when we want to fuck with our local DNS, we install a local DNS server. This lets you do things like block *.ru or *.cn, and the server will return NXDOMAIN instead of a potentially-valid IP address, which will prevent an attempted TCP connection. You can also use this for the rest of your networked devices if you like.

      Blocking malicious content of course, should always be done at the application layer, with e.g. AdBlock. But you knew that.

  41. Windows thinking by Chewbacon · · Score: 0

    Firewalling is a windows necessity with nasty shit piggy backing in on exploits in legitimate shit, not so much in Linux, however. If you're using client applications (web browser, email client, etc) then they will only open up sockets when needed and not open ports to receive traffic. And I agree with what I read above: if you know what services you're starting, you don't need a firewall.

    --
    Chewbacon
    The Bible is like Wikipedia: written by a bunch of people and verifiable by questionable sources.
  42. GUFW config: by Anonymous Coward · · Score: 1

    gufw should be fine for what you need. Start by clicking the unlock button to unlock controls.

    1. Set firewall policy (dropdowns) to Deny outgoing, Allow incoming. now all unsolicited inbound traffic will be blocked.

    **Note: You probably don't need to block outbound traffic. You also don't need to allow inbound smtp/pop/imap just to check your mail - those are outbound connections from your computer to the server. Unless you're serving content, you're probably done here. (Do other computer connect to your computer to get stuff?)

    2. If you are providing a service(example ssh access):
    Click [Add] button to add an exception. In Preconfigured tab select [Allow] [In] [Service] [SSH], then click [Add]. If the service or application isn't listed (or has been configured to use different ports!) use the simple tab and select [Allow] [In] [TCP] [22].

    At this point only the ports/services/applications you've explicitly added will be allowed in.

    3. There are two ways to make exceptions to #2:
    First you could just make a more complicated rule using the advanced tab to set any of these ip requirements: source, sourceport, destination, destport.
    The other way (and probably best for you) is to make another rule to deny untrusted host.
    Example: if you didn't trust 10.1.1.1 Click [Add] to start a new rule. Go to advanced tab, check [show extended actions] and set the first number to 1 -- this will make sure your deny rule is the first rule and will come before the allow rule. Now set [Deny] [In] [Don't Log] [Both] from:10.1.1.1 (leave from-port/to/to-port blank). -- this will block 10.1.1.1 from accessing your computer even though other hosts can connect to your SSH (from #2)

    done. protip: rtfm, learn tcp/ip. CAPTCHA: barrier

  43. Re:Why? Is it really necessary? by Anonymous Coward · · Score: 0

    You clearly didn't comprehend. It's not just about enabling the services that you want, but making sure that even if the services behave in unexpected ways you're still covered.

    For example, it's not unheard of for updates to suddenly misbehave...

  44. Welcome to Linux er, by Anonymous Coward · · Score: 0

    Welcome to Linux except it isn't called Linux anymore the new name is Lennart NT.

    All these mean druids are telling you that you have to learn iptables. Too bad they don't know it is about to be replaced by firewalld.

    https://fedoraproject.org/wiki...

  45. Re:Ask Slashdot? by Anonymous Coward · · Score: 1

    Yeah, just read all the documentation to educate you about network security and firewalls, and then read all the documentation for all of the front-ends so you can make an educatged decision about which one to use. It's not as if there are other people that know more than you that could advise you out of some fellow-feeling of community or anything. Not in linux-land at least, there you just get blasted for not re-doing all the work for yourself. I'm surprised you didn't demand they write their own version of iptables!

  46. Why firewall? Protecting some other computers? by dUb · · Score: 0

    Hi

    Good you found Linux and you are trying it.

    Some rules what you should know about different Operating Systems - examples about Linux here:
    - Linux does not need firewall. Unless you are protecting other computers.
    - Firewall is not needed unless you have ports open (listening) what you can not close. On Linux _you_manage_your_computer_ and you can close programs which are listening and you don't like.
    - If you have any services you want to protect being accessed from bad/wrong hosts... you have options like tcpwrapper.
    So check your ports by running command: sudo lsof -i -Pn
    It shows you currently open connections AND ports which are ready to receive traffic from Internet.

    If you see ports what you don't want to be listening then identify it and stop. Like this:
    smbd 7114 root 26u IPv6 101652 0t0 TCP *:445 (LISTEN)
    So you have smbd (Samba) listening TCP port 445, it has PID number 7114 ("sudo kill 7114" to kill it) and it is running as root level.

    So - you don't need firewall. Just knowledge how to close unneeded services/programs.

    Br, Henri

    1. Re:Why firewall? Protecting some other computers? by Hamsterdan · · Score: 1

      With all due respect, not good advice if the person is new to Linux.

      A basic firewall is better than none at all (yes, even on Linux). If he knew Linux so much, he wouldn't ask the question. A firewall at default config will offer protection and he can play with it later on to open ports if needed.

      "So - you don't need firewall. Just knowledge how to close unneeded services/programs."

      That's my point, if he comes here asking that question, he probably doesn't have the knowledge (yet) to do so.

      --
      I've got better things to do tonight than die.
  47. apt-get iptables-persistent by Anonymous Coward · · Score: 0

    You're welcome. If you can't figure out iptables, you have no business editing firewalls anyway.

  48. Re:Why? Is it really necessary? by gdshaw · · Score: 1, Insightful

    1997 called and wants its comment back...

    For machines which are not routers the comment is just as valid now as it was then. If you use a GNU/Linux distribution that takes security seriously then it will not install any externally-visible network services by default. The attack surface in that condition is small enough that installing a firewall won't help much, and might even make matters worse. If you deliberately install any public-facing network services then you need to add matching firewall rules, so again no benefit.

    A firewall does help if you install a private network service and forget to bind it to the loopback interface (unless you have one of those systems which automatically install a firewall rule alongside the network service, which totally defeats the purpose of having a firewall). In any event, this only protects against internal incompetence rather than external malice, so is not a necessary part of running a secure system.

    Firewalls are useful on routers, and on servers where you want very specific control of what can be accessed from where (such as a DBMS that is only accessible from a single client machine), but for typical Linux-based hosts they add little.

  49. Little Snitch by fyngyrz · · Score: 1

    Have you tried Little Snitch? When an app tries to open an outgoing port, it intercepts it and pops up a dialog giving you the option to allow the app to open any port, just that port, just to that target -- and then you can qualify that with once, until reboot, or forever.

    You can edit these settings later if you have a reason to.

    I've found it to be very useful, and certainly not difficult in any way.

    Not affiliated, just a happy customer.

    --
    I've fallen off your lawn, and I can't get up.
    1. Re:Little Snitch by kirkc99 · · Score: 1

      Have you tried Little Snitch?

      Another plug for Little Snitch. It does exactly what you are describing.

    2. Re:Little Snitch by rivercityrandom · · Score: 1

      I agree, Little Snitch is an awesome program, but sadly, it's for Mac OS X only. Not very helpful to the original poster, who is running Linux.

  50. User friendly, as in having GUI? by Anonymous Coward · · Score: 0

    I've used Zentyal for some time: ubuntu based, powerfull, very easy even if a little canned up (you MUST use the GUI or risk ruining your setup).

    Also Untangle is very good, powerfull and easy.

    King of simplicity can be ipCop: it's been going for years and is very well made, strong, flexible and easy to use.

    Of course you can use Shorewall or even ufw (Uncomplicated Firewall, bundled with ubuntu server), both GUI. Webmin will give you a pretty good front end for shorewall.

  51. Try Mint instead of Ubuntu by Anonymous Coward · · Score: 0

    I use CentOS for my web servers. I have some still fully functional XP boxes and laptops that I was looking to move over to Linux so I tried Ubuntu. Eh. It was nice.

    Then I tried Linux Mint and I like it so much better, especially since it "feels" more like XP than Ubuntu.

    Give Mint a try.

    (Yes, I know Mint is based on Ubuntu but the UI is certainly different)

  52. Re:Ask Slashdot? by jedidiah · · Score: 0

    You're either doing nothing particularly interesting in which case any consumer appliance will do.

    Or you are doing something inherently interesting and should not be a total rube while doing it. In that case, you should be able to deal with the iptables interface or seriously reconsider what you are doing.

    There's a little issue of professional responsibility here. You should have enough pride to not want to be a menace to others and willing to do what it takes to ensure that.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  53. This is hard on Linux by adam.hooper · · Score: 1

    Defining rules on a program-by-program basis is hard on Linux.

    That's sort of embarrassing for a "secure" operating system, right?

    The historical reason: filters based on application (as opposed to port) are comparatively slow and complicated. Linux thrives in a server environment, where the threat model is different: on a server, it's a better idea to write extremely restrictive firewall rules that all applications must abide by. Spyware is not much of a threat on a server that allows no outgoing connections except HTTPS to 10.x.x.x.

    The feature does exist, in something called "libnetfilter_queue". I haven't seen anything that's usable by Normal People. Folks who want to write their firewalls in C can start here: https://home.regit.org/netfilt...

  54. Re:Guarddog: by antdude · · Score: 1

    Because it is no longer updated. I used to use it too, but it doesn't work with the latest stable Debian and its Kernel versions. :(

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  55. IPTables by Jorkapp · · Score: 1

    IPTables is by far the best firewall for linux, and its built-in to boot.

    If you're iffy on command-line parameters, install Webmin on your system. It gives you a web interface, and the IPTables page makes configuring your firewall relatively newbie-proof.

    I, for one, hate IPTables on the command-line, and much prefer the Webmin method. Its what I use on my home server.

    --
    Frink: Nice try floyd, but you were designed for scrubbing, and scrubbing is what you shall do.
  56. firehol by demerson3 · · Score: 3, Interesting

    I'm a little surprised nobody has mentioned firehol - http://firehol.org/. I've been using it for my simple needs, and it is fabulous. Easy to learn, simple language, great results, and CLI-friendly. (Prior to discovering it, I used guarddog, which I found to be good but which isn't anywhere near as good as firehol.) From the firehol page: FireHOL is an iptables firewall generator producing stateful iptables packet filtering firewalls, on Linux hosts and routers with any number of network interfaces, any number of routes, any number of services served, any number of complexity between variations of the services (including positive and negative expressions).

  57. LeopardFlower looks good, but... by antdude · · Score: 1

    "As of 2014-01-12, this project is no longer under active development." text. :(

    I like GuardDog, but it is no longer updated and doesn't work with the latest Debian/Linux's Kernels when I tried it a couple years ago. :(

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  58. Re:Why? Is it really necessary? by antdude · · Score: 1

    What if it is a portable machine and wants to use public wireless Internet? Also, what if (s)he wants to block outgoing connections and stuff which hardware firewalls can't do?

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  59. Looks like official Unbuntu gui is gufw by caseih · · Score: 1

    Doing a bit of research, the official Ubuntu firewalling utility is ufw, and there is a default GUI for it called gufw. Probably the OP should direct his attention here first.

  60. Funny You should ask... by Anonymous Coward · · Score: 0

    ...on my favorite distro I do have a GUI for the firewall.

    On the other hand, my opinion on Ubuntu is "the Windoze of the Linux world", much smoke but no fire.

  61. On the same machine, or standalone? by Hamsterdan · · Score: 1

    If standalone, as in replacing your existing router, I've used IPcop, Smoothwall (a little more flexible) and full-blown ClearOS with mail server, antivirus, even the kitchen sink (well, almost).

    If on the same machine, I honestly don't know, since I'm currently only running Windows and OSX

    --
    I've got better things to do tonight than die.
  62. Re:Ask Slashdot? by evenmoreconfused · · Score: 2

    You want someone two days into a simple desktop linux system to get a consumer appliance?

    Surely there should be some simple point-and-click app he can install from the desktop that will prevent basic misbehaviours. The very act of asking here shows that he does indeed have pride enough to want not to be a menace.

    --
    No. Well...maybe. Actually, yes. It really just depends.
  63. Re:Why? Is it really necessary? by Anonymous Coward · · Score: 1

    Firewalls are about keeping things in as well as out. One of the reasons that there are so many problems on corporate networks is that there's often times no firewalls once you get to the LAN. I remember when I was in college the set up in the dorms was dire. People would be sharing things read and write and you'd wind up will all sorts of nasty things on the network, and then there was the malware.

  64. Re:Why? Is it really necessary? by AmiMoJo · · Score: 1

    That's fine as long as you are sure there are no bugs in the services you run and the TCP/IP stack, and you keep them all up to date, and you don't mind kiddies hammering on your door 24/7 trying to guess your passwords.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  65. Re:what he actually wants to configure is applicat by causality · · Score: 3, Informative

    he wants a global way of configuring which applications have the capability to connect to what servers or open what ports. This is a different meaning of 'firewall' than is used in the Unix world.

    AFAIK there's already some capability enforcement prohibiting some programs from accessing the Internet in modern Linux distributions, but, I don't really know how it's configured either.

    I simply use an alternate user to arrange this. In my case, it's the Windows games I run via Wine. I don't trust them and I have no need for single-player games to connect to remote servers.

    So I create a user named "winegames". I run all Windows games as this user. Then I add a simple iptables rule:

    iptables -A OUTPUT --match owner --uid-owner winegames -j REJECT

    Now nothing run as "winegames" can connect anywhere. A few games will briefly complain that they can't connect to the server so that people who don't care can see my in-game achievements but that's alright. Also, I use REJECT instead of DROP so that the programs get an instant error when they try to connect. If you use DROP they will waste a lot of time waiting for a response that will never come.

    Incidentally, if your distro does not provide this, you will need to add a line to your PAM config to allow alternate users to open windows on your X display. For my distro (Gentoo) the file is /etc/pam.d/su. I simply add this to the file on its own line: "session optional pam_xauth.so". Now the alternate user "winegames" can open new windows on the X server started by my main user.

    --
    It is a miracle that curiosity survives formal education. - Einstein
  66. pfsense by Anonymous Coward · · Score: 0

    FreeBSD, but hard to beat Pfsense. It is actually very easy to use.

  67. Read this slow take your time. by ralphaostrander · · Score: 1

    This will have you up running and understanding. http://www.malibyte.net/iptabl... Do it right.

  68. GUFW + Privoxy by Anonymous Coward · · Score: 0

    Use GUFW for the simple rules, and Privoxy to filter the crap that GUFW can't set, both simple to use with a little reading. http://www.privoxy.org/

    1. Re:GUFW + Privoxy by bswarm · · Score: 1

      Yes, privoxy works great for the custom rules. It's has a slight learning curve but it's not that difficult.

  69. Android = Linux (being torn up) by Anonymous Coward · · Score: 0

    Really? Android = Linux & it's being torn up faster than windows ever was in the same timeframe in the "top spot", despite all your b.s here on /., that IS fact.

    In fact - So much for the typical "Open SORES" bullshit we've heard for YEARS out of you idiots of "Windows != Secure, Linux = Secure" purest CRAP!

    Especially now that ANDROID has a top spot, finally, on some platform in smartphones (only 1 reason for it - FREE OS, lowers unit costs, but no other REAL REASON other than that)?

    Again - ANDROID OS (a Linux) is proving my thoughts that the MORE ANY OS IS USED, the more APT IT IS TO BE ATTACKED

    See... criminals online? They TRULY ARE, just like street pickpockets!

    I.E./E.G. - they don't "target crowds of 1" only (like Linux on the desktop - almost non-existent by comparison to Windows' what? Near 95% marketshare there??), they go after BIG crowds (ala train & bus stations, crowded streets, or OTHER throughfares like malls)...

    So, now that you've got it on smartphones. you have WORSE ISSUES THAN WINDOWS EVER HAD IN THE SAME TIMEFRAME of existence @ a top most used spot & yes, on a Linux.., fact.

    APK

    P.S.=> You "penguins" would do a LOT BETTER telling the REAL TRUTH - not your marketing LIES b.s. speak... seriously!

    ... apk

    1. Re:Android = Linux (being torn up) by Chewbacon · · Score: 1

      The biggest issue with android is all the malware that was thought to be innocent software. Most of your core software for Linux is made be reputable organizations. That said, the software that make up the services people use Linux for is large and complex and requires much more work than say a phone app. Sadly, the openness of Linux can give it a bad name when ignorant fucks like yourself can't tell the difference between them.

      --
      Chewbacon
      The Bible is like Wikipedia: written by a bunch of people and verifiable by questionable sources.
    2. Re:Android = Linux (being torn up) by epyT-R · · Score: 1

      No, google designed the userland for that.. It's setup basically to ensure that app developers get real data from the phone. the owner of the phone wasn't meant to be secure. A real secure solution would be to ensure the apps have no idea if they're getting real info or not Right now the user just gets a choice to 'accept access or don't run'.

      The fact this runs on a linux kernel is irrelevant.

    3. Re:Android = Linux (being torn up) by Anonymous Coward · · Score: 0

      Don't bother responding to APK. He's a well-known Slashdot troll who is obsessed with hosts files.

    4. Re:Android = Linux (being torn up) by Anonymous Coward · · Score: 0

      Same happened on Windows too though, in "trojans" (but penguins never admit that)

    5. Re:Android = Linux (being torn up) by Anonymous Coward · · Score: 0

      Awww, but he did respond. See, ac troll? Nobody listens to your babblings!

    6. Re:Android = Linux (being torn up) by Anonymous Coward · · Score: 0

      It's releevant to users that get infested and proof it's a bad design.

  70. IPTables FTW by guruevi · · Score: 1

    Most distros will have the rules in a single script, they are really easy to read, modify and understand. I don't understand what good a GUI would do for something as simple and important as a rule-based firewall, GUIs only hides things.

    Of the top of my head:
    iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT
    iptables -A INPUT -p 22 -j ACCEPT
    iptables -P INPUT -j DROP
    iptables -P OUTPUT -j ACCEPT
    iptables -P FORWARD -j DROP

    To get a detailed overview of the rules:
    iptables -nLv

    If you need any simpler, just go with the defaults your distro has to offer, they'll be secure.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  71. One Week of Gentoo by Anonymous Coward · · Score: 0

    hey mate, if you have a 2nd computer to use for "getting help" spend 1 week going through installing gentoo. you will learn heaps.
    https://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml

    gentoo docs are great. the outcome will be you have a very good understanding of how it all works. including some firewall stuff

    good luck!

  72. Unless you use NoScript, you run 3rd party SW by tepples · · Score: 1

    Most desktop Linux distributions that I'm aware of include Mozlla Firefox or a renamed version of Firefox. By default, Firefox downloads and runs third-party JavaScript applications linked from web pages that the user visits. So do Chrome and other renamed versions of Chromium.

    1. Re:Unless you use NoScript, you run 3rd party SW by Anonymous Coward · · Score: 0

      What's your point.

      Most web applications won't work without javascript.

      Your perception of security is quaint.

  73. IPFilter/PackerFilter on NetBSD by manu0601 · · Score: 1

    IPFilter or PacketFilter on NetBSD. I am a bit redundant since it was already proposed for OpenBSD and FreeBSD, but NetBSD was missing :-)

    I must add that BSD are good systems to learn. They take no initiatives and most of the time stick to common Unix tools instead of reinventing the wheel. That means for instance that knowledge acquired on NetBSD can be useful on Linux

  74. Re:Ask Slashdot? by Bill,+Shooter+of+Bul · · Score: 1

    What that guy is asking for isn't a simple firewall. Windows firewall can't do that, as far as I recall.

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
  75. dubious help request by wanderson · · Score: 1

    Since Ubuntu Linux and most every other Desktop Linux available in 2014 has an "easy to use", intuitive GUI firewall configuration utility, I an skeptical that any person using Linux, even for the first time would (a) receive space on Slashdot to ask such question, and (b) a question that I consider completely unnecessary if writer is guided by common sense in using the standard and well documented visual Ubuntu Firewall application, and suspiciously naive in not going first to Ubuntu Help center or any person nearby who is not simple-minded in regard technology..

  76. You don't really need it. Linux != Windows by flyingfsck · · Score: 0

    Firewalls are mostly a Windows thing. You don't really need one on a Linux desktop.

    You don't even need one on a server either. A server just needs a single rate limiting rule.

    That is why Ubuntu ships with no firewall rules.

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  77. Great Firewalls by chmcwill · · Score: 1

    pfSense for a simple, easy to use open source firewall or for an full featured community supported firewall, give Untangle a try ...

  78. Webmin by Anonymous Coward · · Score: 0

    Just get webmin and use that for everything.

  79. Don't be a idiot! by higuita · · Score: 1

    Unless you known exactly what you are doing, what ports you have open and what are the risks of each, you SHOULD USE a firewall... ALWAYS!! no matter if you are using windows, macosx or linux.

    IIRC, Ubuntu brings no open port for default, so that is why it don't have a default firewall, but if you start installing programs, specially server programs, you should
    configure a firewall in a correct way.

    I use a old script called gShield on older machined and fwbuilder on newer ones. I also use custom iptables scripts. If you know a little about networks, building a firewall isn't hard, try it!.

    --
    Higuita
  80. Good luck. by buttfuckinpimpnugget · · Score: 0

    iptables fucking sucks and everybody knows it. Heres a nickel kid, get yourself a real firewall. http://www.openbsd.org/faq/pf/...

  81. Re:Why? Is it really necessary? by Anonymous Coward · · Score: 0

    No, there is not an echo in here. What happens when a mail client gets compromised and there aren't restrictive outbound firewall rules in place on the machine?

    I'm philip.paradis, and posting anonymously only because I don't log in on non-personal machines.

  82. Ubuntu Wiki by Anonymous Coward · · Score: 0

    https://help.ubuntu.com/community/Firewall

  83. Re:Why? Is it really necessary? by gdshaw · · Score: 1

    Firewalls are about keeping things in as well as out. One of the reasons that there are so many problems on corporate networks is that there's often times no firewalls once you get to the LAN. I remember when I was in college the set up in the dorms was dire. People would be sharing things read and write and you'd wind up will all sorts of nasty things on the network, and then there was the malware.

    Yes, but I presume you are talking about Windows machines which run an SMB/CIFS server out of the box. Most GNU/Linux distributions rightly don't do that. Typically if you want to run Samba, or an FTP server, or an HTTP server on the default port then you need to be root to do that. Once you are root then you can also poke a hole in the firewall.

    Granted you can run servers on high-numbered ports, but within a LAN all that does is allow two machines that had already been compromised to communicate with each other. For communication with the outside world I prefer to detect and/or block that at the boundary router (otherwise all it takes is a local root exploit to disable the firewall).

    The same applies to outbound connections, although in a world where so many programs need network access that is arguably a lost cause for general-purpose workstations. In any event, a firewall isn't the right tool for controlling the capabilities of individual programs: you really need something like SELinux or AppArmor to do that effectively.

  84. Re:Why? Is it really necessary? by philip.paradis · · Score: 1

    When was the last time you were party to a serious information security audit? I get the feeling you don't protect data of substantial value for a living.

    In any event, this only protects against internal incompetence rather than external malice, so is not a necessary part of running a secure system.

    You forgot to mention internal malice.

    --
    Write failed: Broken pipe
  85. Re:Why? Is it really necessary? by gdshaw · · Score: 1

    That's fine as long as you are sure there are no bugs in the services you run and the TCP/IP stack, and you keep them all up to date, and you don't mind kiddies hammering on your door 24/7 trying to guess your passwords.

    If you need a service to be publicly accessible then you will need to configure the firewall accordingly, in which case it typically provides no protection if the service is exploitable.

    If the service doesn't need to be publicly accessible then either turn it off or bind it to the loopback interface. Why add extra software to protect against a vulnerability that you could have avoided creating in the first place? Note that operating systems that take security seriously do not install public-facing network services unless you ask them to.

    Firewalls certainly have their uses, but they aren't a necessity on non-Windows machines in the way that they are for Windows.

  86. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  87. Re:Why? Is it really necessary? by ByteSlicer · · Score: 1

    I use DroidWall (iptables frontend) on my Android phone (=non-Windows) to keep apps from sending my private data out. As an added bonus, it blocks most ads.

    Yes, you can choose to not install those apps, but most of them want a network connection and access to storage...

  88. You're thinking about it wrong by DavidMahon · · Score: 1

    Firewalls are absolutely essential, but you're thinking about them the wrong way out of FUD.

    You know that certain blocks of IPv4 addresses are infamous for malware, but do you know their IPv6 counterparts? What if your neighbor's computer is infected with the latest and greatest zombienet? Heuristic blocking is far superior in that regard.

    Install fail2ban and you will have inbound heuristic blocking. It looks at your system log files and applies clear rules for temporarily banning misbehaving IPv4 and v6 addresses. You will see lots of script-kiddie-style attacks and not much else. Because in the real world, most inbound malware are automated probes by people looking for known points of entry. Block them and you block almost all inbound malware. Further, it uses IPTables to execute the blocks, so it is transparent AND doesn't add another layer of cruft.

    Your best protection from outbound malware is still good computer hygiene. Failing that, you can use the GUI's, but there is a reason they are not that common. It's because there isn't a culture of making malware for Linux (outside of server deployments). A note of caution - feel free to block ICMP, TCP and UDP traffic, but do NOT block Sockets traffic, or you will cry as your logging shuts down and the GUI fails in weird ways. Linux counts them all as equal network traffic.

  89. pfSense by ltrand · · Score: 2

    I know you're new to the linux world, but while you're at it, dive into the BSD realm while you're at it.

    You can do Firewalling with packet filter instead of iptables (better session tracking). BSD is generally better as a network appliance than linux for a number of reasons, and for firewalling especially. Better session tracking, better dynamic protocol handling, better error and flow control, and generally more robust. Iptables is powerful, but it has its downsides that can be felt these days with higher network speeds, IPv6, and dynamic network protocols which is why the linux kernel is moving away from it to NFTables. But NFTables is not yet complete, hence we circle back to BSD with its pf package.

    pfSense offers exactly what you're looking for and probably more. It provides a gui and cli to manage the device and a robust user/support community. Beyond firewalling you can do proxy, captive portal, VPN, DNS, DHCP, NAT, IPS/IDS, and a whole lot more. It has a webGUI and sets up in all of about 10 minutes.

    It packs all of the features you would see on "enterprise class" firewalls, just open source.
    https://www.pfsense.org/

  90. Re:Why? Is it really necessary? by gdshaw · · Score: 1

    In any event, this only protects against internal incompetence rather than external malice, so is not a necessary part of running a secure system.

    You forgot to mention internal malice.

    Let's put my comment back into context. I was talking about forgetting to bind a private network service to the loopback interface. That would normally be done by an administrator. If an administrator is acting maliciously then you have fairly serious problems with or without a local firewall. In fact, this is a pretty good demonstration of my point that if you are going to use a firewall to protect against that kind of threat then the firewall wants to be on a different box (eg. a router or dedicated firewall), not the one that you are expecting to be compromised.

    To be clear: I'm not saying that firewalls should never be used on Linux-based hosts (that would be ridiculous), only that they are not a necessary part of running Linux securely in the way that they are for Windows.

  91. Ha, ha, that's funny! by Anonymous Coward · · Score: 0

    'User-friendly' and 'brand-new Linux user' in the same sentence.... ha, ha, ha! That was funny!

  92. Re:Guarddog: by antdude · · Score: 1

    It totally was. :(

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  93. Re:what he actually wants to configure is applicat by fa2k · · Score: 1

    AFAIK there's already some capability enforcement prohibiting some programs from accessing the Internet in modern Linux distributions, but, I don't really know how it's configured either.

    Can't add much, but the systems are called AppArmor and SELinux. Just wanted to note that this may indeed be a great opportunity for the security focused. You have to choose a distro that supports the system you like best. There are GUIs for configuring them, but they aren't very mature I think.

  94. Re:what he actually wants to configure is applicat by fa2k · · Score: 1

    Using different users is a nice solution, which I use to run the browser. You can also start the applications using kdesu or gnome-sudo; then you don't need to add a pam configuration. Just a heads up to the parent, I can't find a damn way to get sound from the applications after adding pulseaudio. (Every time I need to watch a video with sound I have to copy the URL into a browser running as my own user. I've got the browser user to use a dummy sink, so it just doesn't play sound, doesn't crash or anything, and it's not actually that bad.. ) I would possibly use SELinux if it would work with my ZFS

  95. Man...I haven't used it for years... by JonSchneider · · Score: 0

    But as I recall it was pretty awesome. I replaced it with some basic home router at one point, then after getting fed up with the lack of SNMP support put in Zentyal. Pretty happy with that as I was able to get netatalk running on it for Time Finder backups on Mac.

  96. Re:Why? Is it really necessary? by Arker · · Score: 1

    Indeed, as unsatisfying as it is, the answer is that the question is wrong.

    A windows software firewall is not the same thing as a standard firewall, it's a rather specialized bit of software that, unlike normal firewalls, does NOT just look at the packets and judge them for themselves. Instead, it keeps track of which *programs* on the machine are allowed to connect and how. On Windows, it's needed, and can be very useful i.e. even if the trojan gets installed using a drive-by exploit, it still cant call home (and when it tries, you get a clue that it is present.)

    On *nix systems, I am not saying something similar could not be made, and found useful. But the need is certainly much less. You do not really need a software firewall on a system where programs cannot run without user intervention.

    --
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Friends don't let friends enable ecmascript.
  97. firewall, no, fire suite by Anonymous Coward · · Score: 0

    You stupid fucking tool, just use iptables or ipchains....

    Stupid n00bz don't need a firewall, they need a firesuit. Get use to the flames you dumb motherfucker.

  98. Webmin Shorewall Install by Anonymous Coward · · Score: 0

    Download webmin here: http://www.webmin.com/ not sure what flavor of Linux you're using but between the deb and rpm packages most are covered. For Shorewall use the package manager front end and do a search for it. Select shorewall itself and let your package manager solve the dependency issues. Once Shorewall is installed double click the webmin package and hopefully you'll get a nice GUI popup that will allow you to install it. It should also download all the packages you need for dependencies. If not either install the appropriate gui frontend or use the command line (commands vary based on the core package system, use man pages and google to find out how to use your CLI commands.)

    Once Webmin is installed use your browser and go to https://localhost:10000

    One thing, if your using any version of Linux Mint Webmin will not work.

  99. Pretty impressive for a new user... by vi.emacs · · Score: 0

    .... to already be aware the 2nd day of usage that there is such a thing as 'APT', even more that there is a thing called YUM (which is what Red Hat uses, not Ubuntu) and then the mention of IPTABLES of course...

    In any case, good to think about security. I can't recall the last time I installed a firewall or a virus scanner. To me, mew worms and virusses are ipso facto not detectable until there is a patch...

  100. i am unable by Anonymous Coward · · Score: 0

    to deduce why you need a firewall. are you paranoid?

  101. If it is doable w/o JS, it should be doable w/o JS by tepples · · Score: 1

    Web applications that use the old pre-DHTML model of clicking to update the whole page and entering things through discrete HTML forms, such as pre-D2 Slashdot, work fine without JavaScript. And the minority who use NoScript expect, say, online stores to do the same, treating JavaScript only as a "progressive enhancement" as opposed to a requirement.

  102. Don't block anything by PigleT · · Score: 1

    Security by blocking bad things is a very bad idea, a completely false sense of security.

    Couple these together instead:
    default-deny (got that much correct);
    incoming, open stateful continuations of established connections;
    incoming, open ports for services you run (e.g. web- and dns-servers, etc), with rate-limiting per source.

    iptables will allow this, no problem.

    There is no point in "automatic" firewalls that detect bad things and block sources; all they do is clutter-up your firewall rules for the sake of an event that (1) comes under default-deny and (2) is already history - people doing bad things are mostly operating fire-and-forget.

    --
    ~Tim
    --
    .|` Clouds cross the black moonlight,
    Rushing on down to the circle of the turn
  103. Why? by hobarrera · · Score: 1

    You say you're a new Linux user, and it looks like you're carrying over you windows-way-of-thinking.

    Most Linux distros don't have services running with lots of security holes. You don't generally need this.
    Most malware out there is actually stuff like "click here for free money.exe". Even if you come across Ubuntu-targeted stuff, it does look like you're the kind of person who wouldn't click that.

    Several people here have pointed out possible solutions, but think for a moment if you really need them.

  104. Re:what he actually wants to configure is applicat by causality · · Score: 1

    I know this is an old thread ... but I really don't like Pulseaudio.

    I never installed it on my Gentoo system. On my Mint systems, removing Pulseaudio is one of my first post-installation steps.

    If I want to play sound over a network I export a read-only filesystem containing my media to the machines on my LAN (Samba does this nicely). Then I can play video and anything else over the network too, in a transparent way. I've never seen a single benefit of running Pulseaudio but I have seen lots of difficult-to-resolve problems. It's just useless bloat to me. I have a much better time using straight ALSA.

    --
    It is a miracle that curiosity survives formal education. - Einstein