D
D
Dysnystaxis2016-03-05 08:22:50
linux
Dysnystaxis, 2016-03-05 08:22:50

What to do for security in linux on a home machine?

I decided to leave Windows, the choice fell on Debian. Windows lacked a firewall and proactive protection. And what to do in linux? Installed the firewall, closed the ports, it's clear with root. What else? What processes to disable? What logs to watch? The habit from windows is not gone yet. :)

Answer the question

In order to leave comments, you need to log in

10 answer(s)
S
Sergey, 2016-03-10
@Dysnystaxis

  • chkrootkit+rkhunter = and don't need any kaspersky.
  • Add security updates to the lists of repositories, regularly roll out updates (usually in graphical mode, she herself offers), update when new versions of the OS are released (best of all, a month after the release). Unlike RH-like ones, here you can update the version on the go, even without rebooting (then it would be nice to reboot somehow to make the new kernel work).
  • For reinsurance - if there are any services such as mail (for receiving), ssh, vnc, etc., then disable ssh login with a password (only a key), set fail2ban.
  • You can also logwatch / logcheck to make it easier to look at the logs (they themselves will tell you about everything non-standard / suspicious). SELinux / apparmor - optional, because if you set it up once, then you need to disable / edit it for each system sneeze, which can be annoying.

F
fpir, 2016-03-10
@fpir

Once a neophyte came to the master of the teaching and said:
Teacher, I am tormented by doubts. When I professed the Windows way, I had antiviruses, and firewalls, and registry cleaners, and other utilities that protected me. Now, I feel defenseless against the dangers of the Internet.
Then the teacher tied his shoelaces and told him to run!
What does this mean, Master?
When a house is initially well designed, there is no point in additional props.
And then the neophyte knew Zen.

I
Ilya Erokhin, 2016-03-05
@AirWorker

Yes, everything is normal there with security by default. Just do not hang too much on open ports and update on time.

B
beduin01, 2016-03-05
@beduin01

Like it or not, security in Linux is sometimes worse than in Windows. Therefore, it is recommended to install an antivirus. For example , Kaspersky Endpoint Security for Linux .

H
hobbyte, 2016-03-06
@hobbyte

I'll suggest something strange:
- put a tench in the virtual machine, play around, scan, kill it (gently);
- when you understand how to handle it, put it on real hardware.

P
Pan Propan, 2016-03-05
@mgis

Everything is fine by default, as far as I know. You can safely click banners)

C
chupasaurus, 2016-03-05
@chupasaurus

The firewall is by default, just inactive and optionally brought to the desired condition.
If sudo is set, you can get paranoid by reading /var/log/auth.log

C
CityCat4, 2016-03-05
@CityCat4

The logs are all in /var/log, we look, we read. Do not open extra ports - and there will be happiness. In general, the network is full of descriptions of how to configure Linux in a relatively safe way. True, in any case, you need to understand what you are doing - well, you need it even in Windows ...

A
Alexander, 2016-03-05
@Rekk1

Elusive Joe...

V
Vasily, 2016-03-10
@CTpaHHoe

in addition to what you already have - configure SELinux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question