LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-22-2006, 04:27 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
SECURITY: How to install firewalls and such for slack


Okay,

Last night I installed slackware on my old computer intending to make a server for apache, samba and perhaps router later on. Now I am wondering what kind of security measures should I put in there. Firewalls and such. I'm pretty new to linux but I think it will be secure if properly confed


I've been using SSH connection on it with Putty and noticed I've had several connection attempts from a single IP-address from another country trying to access my root or user accounts. What can I make to stop this from happening.
 
Old 02-22-2006, 04:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Have a look at the LQ FAQ: Security references.
 
Old 02-22-2006, 06:04 AM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Ah... danke. Again if I only had browsed the right forum....

But I'll read those and check back if/when problems appear.
 
Old 02-22-2006, 07:50 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Thumbs up

Quote:
Originally Posted by Zmyrgel
Okay,

Last night I installed slackware on my old computer intending to make a server for apache, samba and perhaps router later on. Now I am wondering what kind of security measures should I put in there. Firewalls and such. I'm pretty new to linux but I think it will be secure if properly confed


I've been using SSH connection on it with Putty and noticed I've had several connection attempts from a single IP-address from another country trying to access my root or user accounts. What can I make to stop this from happening.
A very easy-to-install IPTABLES firewall script is arno-iptables-firewall. If you search the net you can find it.

I did this right after I installed slackware (new to linux) and I could figure it out...the instructions are great.

This will stealth all your ports, and not respond to pings.
 
Old 02-23-2006, 09:58 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Randux
A very easy-to-install IPTABLES firewall script is arno-iptables-firewall. If you search the net you can find it.

I did this right after I installed slackware (new to linux) and I could figure it out...the instructions are great.

This will stealth all your ports, and not respond to pings.
Okay, I installed the arno firewall (package found in linuxpackages.net). Now I can't access my server from other machine using putty. I know this is the firewall blocking ALL the traffic but how can I change this? I need to conf the /etc/arno-iptables-firewall.conf file, correct? What line? I only found that I could give access to certain card which connects to my LAN but I use the same card for net and if I enable that I enable ALL the traffic again rendering the firewall useless...

confusing.
 
Old 02-23-2006, 10:07 AM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
If you need a GUI firewall configuration tool, you should probably look at guarddog.

On the other hand, you're running a server, so you probably don't want to be running X.
 
Old 02-23-2006, 10:08 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Note that guarddog is a configuration tool for Ip-tables, so you should be fine if you use it. It's not a stand-alone third party firewall.
 
Old 02-23-2006, 11:25 AM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by Zmyrgel
Okay, I installed the arno firewall (package found in linuxpackages.net). Now I can't access my server from other machine using putty. I know this is the firewall blocking ALL the traffic but how can I change this? I need to conf the /etc/arno-iptables-firewall.conf file, correct? What line? I only found that I could give access to certain card which connects to my LAN but I use the same card for net and if I enable that I enable ALL the traffic again rendering the firewall useless...
confusing.
There should be some notes on the website? I was not creating a server, just a desktop, so I was glad to have something to make me mostly disappear. I'm sure there is a simple way to get arno-iptables to work. This is a very common requirement.

Somebody check me on it, but I think guarddog requires KDE. I only run X so I couldn't use it. I decided on arno since it doesn't require any w/m.

Last edited by Randux; 02-23-2006 at 11:26 AM.
 
Old 02-23-2006, 11:38 AM   #9
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
shorewall + denyhost is all you need. when someone is trying to login to your box and fails, denyhost will automatically add that ip to your hosts.deny file. i have mine defined to add to the file with 2 failed login and i know my login wont fail since im using public key authentication. also with shorewall its pretty easy to only allow a single ip to connect using ssh. shorewall is just another frontend for iptables like the others mentioned here but it was the easiest for me to install and configure.
 
  


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
New to linux security,firewalls fhameed Linux - Security 4 03-15-2004 12:50 AM
Newbie question: Firewalls/security the_rydster Linux - Security 4 11-07-2003 11:13 AM
other firewalls for slack? kasperhans Slackware 4 10-31-2003 08:43 AM
Wireless - Routers - Firewalls - Slack 9 Culbert Slackware 1 05-06-2003 06:47 PM
Linux Firewalls [iso firewalls] yoogie Linux - Networking 3 01-28-2002 06:56 PM

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

All times are GMT -5. The time now is 04:19 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