LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2024, 12:56 PM   #1
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Rep: Reputation: Disabled
Securing Slackware server


I'm looking for some suggestions on securing my slackware 15 server. For now it's only running a couple video game servers for my kids and a mariadb (mysql) that I use for development. I have a firewall (dedicated hardware router/firewall/IPS) that only allows the appropriate IP4 ports through however IPv6 is a thing and not knowing as much about it I'm concerned about security on the linux box.

I have disabled SSH password logins, requiring keys.
I stay up to date with slackpkg+
I routinely manually check the last and lastb looking for any strange logins <-- I'd like a more automated way to check this, maybe something like "fail2ban".
I only run the network processes/applications I actively use.

Any other suggestions or resources?

-Brian
 
Old 02-07-2024, 03:50 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Why not disable IPv6?
 
Old 02-07-2024, 04:37 PM   #3
lostintime
Member
 
Registered: Dec 2021
Posts: 192

Rep: Reputation: Disabled
Computer security is one of those topics where asking 10 people for advice results in 12 answers.

Security usually is about risk vs. benefit and how big of a tinfoil hat one wants to wear.

Often security is about layers. For example, an nmap scan would reveal what is open to the world. Although there is a network layer firewall, a simple no frills rc.firewall could be added to ensure nobody hacks the computer if the network firewall is compromised.

Monitoring /var/log/secure might be more useful than monitoring /var/log/wtmp (last[b]).

There might be other ways of securing the environment. For example, development could be contained to inside a virtual machine that has no internet access.

Young children usually are not security concerns. They use whatever parents provide. Just provide them their own login account and let them play. Older children know about the outside world. They tend to get frustrated when they are denied access and start learning or recruiting friends to help them thwart parental controls unless there is a healthy relationship with the parents.

The usual caveats apply -- I'm not a security guru and do not play one on TV.
 
1 members found this post helpful.
Old 02-07-2024, 04:41 PM   #4
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Why not disable IPv6?
I did think about that but I'd rather learn the correct way to use it. It is the future of networking. As an educational exercise. If it was a mission critical business production server that didn't need IPv6 That's the way I'd go.

I'm just looking for the most current IPv6 and general system hardening recommendations, without going full paranoia mode.

-Brian
 
Old 02-07-2024, 05:02 PM   #5
dalgrim
Member
 
Registered: Nov 2014
Location: Michigan, USA
Distribution: slackware14.1 x64
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lostintime View Post
Computer security is one of those topics where asking 10 people for advice results in 12 answers.

Security usually is about risk vs. benefit and how big of a tinfoil hat one wants to wear.

Often security is about layers. For example, an nmap scan would reveal what is open to the world. Although there is a network layer firewall, a simple no frills rc.firewall could be added to ensure nobody hacks the computer if the network firewall is compromised.

Monitoring /var/log/secure might be more useful than monitoring /var/log/wtmp (last[b]).

There might be other ways of securing the environment. For example, development could be contained to inside a virtual machine that has no internet access.

Young children usually are not security concerns. They use whatever parents provide. Just provide them their own login account and let them play. Older children know about the outside world. They tend to get frustrated when they are denied access and start learning or recruiting friends to help them thwart parental controls unless there is a healthy relationship with the parents.

The usual caveats apply -- I'm not a security guru and do not play one on TV.
Yeah, the kids are teens. I'm not really concerned about them though. Fingers crossed, but so far we still have a great relationship and there is trust there. I'm more concerned about the millions of crazies in *insert foreign country here* doing port scans, seeing that there are open ports (there have to be to host the game servers) and attempting to hack the system. I do have a domain name with a subdomain that points to this system (IPv6) using cloudflare and a bash script that runs daily to update the DNS record.

At least the system is mostly for personal stuff and worst case if someone does compromise it I could format and reinstall, only losing some sleep in the process.

I do agree there are so many opinions about security, but that's why I asked. Sometimes you get some really good ideas that you never even considered before.

-Brian
 
Old 02-07-2024, 08:14 PM   #6
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Why not let an auditing tool loose on your system?

Lynis always first, that springs to mind...

But others... like https://geekflare.com/server-configu...itoring-tools/
 
Old 02-07-2024, 09:30 PM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
If your edge device (router or modem to access the internet) supports IPv6 then the filtering there should support filtering and blocking IPv6. IF it does NOT support IPv6 then you do not have to worry about it passing through IPv6 addressed packets.

Your firewall on your host should have settings for both IPv4 and IPv6 filtering. You can always use that to secure your host, it is what it is made to do.
 
Old 02-07-2024, 11:03 PM   #8
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 226

Rep: Reputation: 45
@dalgrim , If your routing device is a cisco/juniper/... , there is a set of security related reference templates for these and other devices & protocols that may be of use to you ...

Provided by team-cymru these have been of good service to me . Hth , JimL

http://https://github.com/team-cymru...rity-templates
 
1 members found this post helpful.
Old 03-08-2024, 11:56 AM   #9
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 62
Blog Entries: 1

Rep: Reputation: 39
Quote:
Originally Posted by dalgrim View Post
I'm looking for some suggestions on securing my slackware 15 server. For now it's only running a couple video game servers for my kids and a mariadb (mysql) that I use for development. I have a firewall (dedicated hardware router/firewall/IPS) that only allows the appropriate IP4 ports through however IPv6 is a thing and not knowing as much about it I'm concerned about security on the linux box.

I have disabled SSH password logins, requiring keys.
I stay up to date with slackpkg+
I routinely manually check the last and lastb looking for any strange logins <-- I'd like a more automated way to check this, maybe something like "fail2ban".
I only run the network processes/applications I actively use.

Any other suggestions or resources?

-Brian
I really like fail2ban, you should used.

If is possible try to change the default ports, like 22(ssh) to 30350 or any high number, if you do to others services will be bette.

If you have cloudflare you can put a WAF in from off the application if you web application.
 
1 members found this post helpful.
Old 03-08-2024, 05:21 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by dalgrim View Post
It is the future of networking.
Is it though?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 14.2 | Few Question's about privacy/securing a slackware install. jhsdcsjdcvbdj Slackware 7 08-30-2017 10:19 AM
Securing Database Server and Application Server in Linux ramsforums Linux - Security 3 04-16-2013 07:55 AM
need help securing apache server in Slackware 11 Kage6060 Linux - Newbie 1 11-01-2007 12:52 PM
securing slackware server jcombs_31 Slackware 8 02-14-2006 04:46 PM
Securing NFS server on Slackware Yalla-One Slackware 0 01-16-2006 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration