ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Security On a Default Ubuntu Server 16.10 Install

    IT Discussion
    5
    7
    648
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BRRABillB
      BRRABill
      last edited by

      How is that for a specific title? I have learned in the Linux world, being specific helps.

      Anyway, due to various discussions here on ML over the past few days (and recent security lapses in general), I have been thinking about base installs. We typically tell people to install Ubuntu for things such as XO or the Ubiquiti Controller but do the instructions need more details on how to setup the server itself?

      In many discussions I have had with @scottalanmiller he tells me I think about Linux wrong. That it is basically just secure out of the box. Easy, not like Windows. (Though some would argue that newer versions of Windows are also pretty secure out of the box.) This thought is also echoed in the documentation of Ubuntu, as well as on setup pages from places such as DigitalOcean.

      So, let's take a default install of Ubuntu. We install it, set a strong password (or even use a SSH key) and run all updates. Is that it? Is that all we need to do? Is it truly secure?

      I guess a good starting point would be a discussion on ... what do YOU do to your base Ubuntu installs to lock them down?

      For me, it is what I mentioned above, and also...

      • fail2ban
      • set firewall to deny all incoming except SSH
      • create a non-root user
      JaredBuschJ 1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch @BRRABill
        last edited by

        @BRRABill said in Security On a Default Ubuntu Server 16.10 Install:

        How is that for a specific title? I have learned in the Linux world, being specific helps.

        Anyway, due to various discussions here on ML over the past few days (and recent security lapses in general), I have been thinking about base installs. We typically tell people to install Ubuntu for things such as XO or the Ubiquiti Controller but do the instructions need more details on how to setup the server itself?

        In many discussions I have had with @scottalanmiller he tells me I think about Linux wrong. That it is basically just secure out of the box. Easy, not like Windows. (Though some would argue that newer versions of Windows are also pretty secure out of the box.) This thought is also echoed in the documentation of Ubuntu, as well as on setup pages from places such as DigitalOcean.

        So, let's take a default install of Ubuntu. We install it, set a strong password (or even use a SSH key) and run all updates. Is that it? Is that all we need to do? Is it truly secure?

        I guess a good starting point would be a discussion on ... what do YOU do to your base Ubuntu installs to lock them down?

        For me, it is what I mentioned above, and also...

        • fail2ban
        • set firewall to deny all incoming except SSH
        • create a non-root user

        I have no idea what the default settings are for Ubuntu systems. Fail2Ban is a nice utility, but unless you are serving something public, it is a waste to configure. Granted most people are using a public service of some type so, because of that, it is a standard. But only because it is a public service.

        I would assume that the firewall is locking everything by default, the same as CentOS firewalls does.

        When it comes to the non-root user, I almost never do it on my CentOS systems because the systems are single purpose application servers and there is never remote SSH access.

        BRRABillB 1 Reply Last reply Reply Quote 0
        • BRRABillB
          BRRABill @JaredBusch
          last edited by

          @JaredBusch said

          I have no idea what the default settings are for Ubuntu systems.

          You don't have any Ubuntu servers set up? I know you aren't a XO user. 🙂

          1 Reply Last reply Reply Quote 0
          • momurdaM
            momurda
            last edited by

            Ubuntu also has AppArmor, which is a bit like the SELinux in other distros.
            https://wiki.ubuntu.com/AppArmor

            1 Reply Last reply Reply Quote 0
            • DashrenderD
              Dashrender
              last edited by

              @JaredBusch what is your Unifi controller running on?

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @Dashrender
                last edited by

                @Dashrender said in Security On a Default Ubuntu Server 16.10 Install:

                @JaredBusch what is your Unifi controller running on?

                Ubuntu. But I set that up two years ago. No idea what defaults are now.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Pretty sure that Ubuntu is fully firewalled out of the box. Don't know anything that isn't these days (except for the famous 1511 issue.)

                  1 Reply Last reply Reply Quote 3
                  • 1 / 1
                  • First post
                    Last post