Results 1 to 7 of 7

Thread: Do I need a firewall?

  1. #1
    Join Date
    Sep 2008
    Location
    Italy
    Beans
    96
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Do I need a firewall?

    Hi all, I'm doing some light web development, I installed php5 and apache on my laptop and read that when running apache your computer is technically a server and is thus vulnerable to computer wankery.

    I'm looking for advice on whether or not I should install a firewall or if I don't really need it. The work I'm doing is not a professional website, just a place for some experiments. All the info I found on the web was targeted to professional web-developers, not so much for amateurs like myself. What do you think?

  2. #2
    Join Date
    Apr 2008
    Location
    London, UK
    Beans
    590
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Do I need a firewall?

    How do you connect to the Internet? If you connect via a router, you don't need a firewall. If you connect directly via modem or USB Dongle, you do need a firewall.

  3. #3
    Join Date
    Oct 2007
    Location
    Europe
    Beans
    3,564
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Do I need a firewall?

    Quote Originally Posted by scottuss View Post
    How do you connect to the Internet? If you connect via a router, you don't need a firewall. If you connect directly via modem or USB Dongle, you do need a firewall.
    +1, ubuntu has a firewall but its not enabled by default, to enable it install a firewall gui, 'gufw' is a simple gui you can use to enable it, install from the ubuntu software center

  4. #4
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Do I need a firewall?

    Most routers have built-in, preconfigured firewalls. If you have one of these, you won't need to worry about firewalls.

    If you do not have a firewall setup already, then you really do need to set one up. Linux has it's own firewall, IPTables, built-in at the kernel level, but it will need to be configured either through the command-line (see man iptables) or through a graphical frontend such as gufw or firestarter.

  5. #5
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: Do I need a firewall?

    Howdy,

    Always use strong passwords for ALL user accounts, then you should be OK.

  6. #6
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Do I need a firewall?

    The best solution would simply be to configure the Apache server to only respond to incoming connections from localhost, or local network addresses.

    https://help.ubuntu.com/community/Ap...uring%20Apache

    A safely configured system doesn't need a firewall.

    edit:
    ..of course if you are behind a router there's no need to do even that, the server won't be accessible from the Net unless you configure your router to forward the connections to it. Without port forwarding the server will only be available in the local network.
    Last edited by mcduck; October 26th, 2010 at 05:45 PM.

  7. #7
    Join Date
    Sep 2008
    Location
    Italy
    Beans
    96
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: Do I need a firewall?

    Quote Originally Posted by mcduck View Post
    The best solution would simply be to configure the Apache server to only respond to incoming connections from localhost, or local network addresses.

    https://help.ubuntu.com/community/Ap...uring%20Apache

    A safely configured system doesn't need a firewall.
    Thanks for the quick replies, you've all answered my question, and I've even got lots of reading/research for the next few days about ports and firewalls. I think I will simply block access to all outside connections and only make it available through http://localhost.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •