The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Linux Folk ... need some help

    Discussion in 'Linux Compatibility and Software' started by millermagic, Sep 4, 2008.

  1. millermagic

    millermagic Rockin the pinktop

    Reputations:
    330
    Messages:
    1,742
    Likes Received:
    0
    Trophy Points:
    55
    I'm kinda lost here. I have to set up a secure Linux server and keep track of the steps I took to secure it.

    I'm running Linux Mint 4.0 right now as my server

    What do I do to secure it?
    What can I use for a firewall?

    I'm very weak with linux and the prof requirese that I do this. I haven o idea what to do with any of this stuff.

    I downloaded snort and samhain but neither would install following the instrucitons via command line.

    I'm like in deep stuff here
     
  2. shaolin420

    shaolin420 Notebook Enthusiast

    Reputations:
    6
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    5
    You can secure it from a network standpoint by limiting the number of applications listening on any given port.

    # lsof -i tcp

    will display output similar to as follows;

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    webAccess 1767 root 5u IPv4 3326 TCP *:webcache (LISTEN)
    webAccess 1767 root 17u IPv4 5188 TCP *:8009 (LISTEN)
    webAccess 1767 root 18u IPv4 5189 TCP localhost.localdomain:8005 (LISTEN)
    cimserver 2492 root 3u IPv4 12858 TCP localhost.localdomain:32944 (LISTEN)
    cimserver 2492 root 4u IPv4 12859 TCP localhost.localdomain:32945->localhost.localdomain:32944 (ESTABLISHED)
    cimserver 2492 root 5u IPv4 12870 TCP localhost.localdomain:32944->localhost.localdomain:32945 (ESTABLISHED)
    cimserver 2492 root 6u IPv4 13378 TCP *:5988 (LISTEN)
    cimserver 2492 root 9u IPv4 13379 TCP *:5989 (LISTEN)
    openwsman 2533 root 3u IPv4 13392 TCP localhost.localdomain:8889 (LISTEN)
    cimserver 2544 root 3u IPv4 12858 TCP localhost.localdomain:32944 (LISTEN)
    cimserver 2544 root 4u IPv4 12859 TCP localhost.localdomain:32945->localhost.localdomain:32944 (ESTABLISHED)
    cimserver 2544 root 5u IPv4 12870 TCP localhost.localdomain:32944->localhost.localdomain:32945 (ESTABLISHED)
    sshd 14178 root 4u IPv4 4274294 TCP pa-tse-h41.pasl.vmware.com:ssh->pmcclellan-xp.vmware.com:3383 (ESTABLISHED)
    sshd 23075 root 4u IPv4 3298400 TCP pa-tse-h41.pasl.vmware.com:ssh->10.16.112.1:4045 (ESTABLISHED)
    vmware-ho 23423 root 8u IPv4 3928985 TCP *:https (LISTEN)
    vmware-ho 23423 root 9u IPv4 3928986 TCP *:http (LISTEN)
    vmware-ho 23423 root 16u IPv4 4096541 TCP pa-tse-h41.pasl.vmware.com:45838->10.16.95.163:27010 (ESTABLISHED)
    vmware-ho 23423 root 40u IPv4 3934452 TCP localhost.localdomain:https->localhost.localdomain:44176 (ESTABLISHED)
    vmware-ho 23423 root 43u IPv4 3936666 TCP pa-tse-h41.pasl.vmware.com:https->10.21.3.222:4190 (ESTABLISHED)
    vmware-ho 23423 root 47u IPv4 3937433 TCP pa-tse-h41.pasl.vmware.com:https->10.21.3.222:4205 (ESTABLISHED)
    vpxa 23874 root 89u IPv4 3934451 TCP localhost.localdomain:44176->localhost.localdomain:https (ESTABLISHED)
    xinetd 27447 root 5u IPv4 4579993 TCP *:vmware-authd (LISTEN)
    sshd 31958 root 3u IPv4 654774 TCP *:ssh (LISTEN)

    where the first column is the application listening and the last two columns are protocol, and the port (generally aliased to the service name, i.e. port 22 = ssh)

    For firewall, i would suggest using Iptables, which is normally installed with most linux distributions (i am specifically unfamiliar with Mint 4.0). http://www.higherpass.com/linux/Tutorials/Iptables-Primer/1/ is a tutorial i found on google (no idea how indepth this is, i simply clicked on the first "Iptables primer" i found.)
     
  3. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    For anti-virus, I would suggest ClamAV.

    For a firewall, try Firestarter (GUI front-end for IPtables).

    By default, most of the settings in a Linux system are pretty secure.
     
  4. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    First thing I would do is get rid of Linux Mint. It is not a server distribution... it is tailored to the desktop. Install something like CentOS or Debian, and there are copious guides to hardening them out on the web. Good luck!
     
  5. millermagic

    millermagic Rockin the pinktop

    Reputations:
    330
    Messages:
    1,742
    Likes Received:
    0
    Trophy Points:
    55
    What about OpenSUSE? that is Red Hat based and can it act as a server? If not I'll start on a download of CentOS
     
  6. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    I think OpenSUSE is also oriented to the desktop. You should definitely go with Debian.
     
  7. millermagic

    millermagic Rockin the pinktop

    Reputations:
    330
    Messages:
    1,742
    Likes Received:
    0
    Trophy Points:
    55
    Trying openSUSE didn't go too well. Desktop != server apparently.

    I'm running Fedora now.
     
  8. jglen490

    jglen490 Notebook Enthusiast

    Reputations:
    8
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    5
    Any Linux distro can be configured to run as a server, some are just easier than others. Mint has a desktop focus, so yes, it is not as convenient as some others. Ubuntu has a version targeted as a server installation, and there are others. The *buntu family is a derivative of Debian, and Debian would be good.
     
  9. starling

    starling Notebook Consultant

    Reputations:
    12
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    30
    I think that most people would say if you want a reliable, secure, super stable server installation, and you don't want to use a BSD system, Debian stable is your best bet.
     
  10. lupin..the..3rd

    lupin..the..3rd Notebook Evangelist

    Reputations:
    154
    Messages:
    589
    Likes Received:
    0
    Trophy Points:
    30
    Why don't you read the course material? Since this is for a uni credit course, I assume there are books and such that go with the class? :confused:

    - For starters you can turn off all plain-text authentication methods, if they're not already off.

    - Apply your distribution updates to make sure you get all the latest security patches.

    - Configure the firewall

    - Disable un-needed services (samba, apache, etc.)
     
  11. mauser1891

    mauser1891 Notebook Enthusiast

    Reputations:
    0
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    5
    Hello Folks,

    I suggest Slack... It was actually my first distro...
    But then you can go check out http://distrowatch.com/
    <irony>I currently use Debian 4.0</irony>

    mauser1891,
    "Debian Powered"
    Celeron M 440
    2G 5300 RAM
    BCM1390
    TOSHIBA MK8034GS
    TSSTcorpCDW/DVD TS-L462D
    SynPS/2 Synaptics TouchPad
     
  12. millermagic

    millermagic Rockin the pinktop

    Reputations:
    330
    Messages:
    1,742
    Likes Received:
    0
    Trophy Points:
    55
    Ended up getting almost everytthing working with fedora server. The only problem I had was I couldn't get snort to work.
     
  13. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Good :) Snort is kinda strange anyway... it's a funky client-server type app that takes some knowledge of how it's built to get it properly working. I'm pretty sure fedora should have a snort package to install, though, if you want to try to load it anyway.