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 05-09-2010, 10:50 PM   #1
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Rep: Reputation: 15
Need help setting up a little security on Slackware with Xfce4.


Hello, and thanks in advance for any future help on this. First and foremost please give me your opinions on what I want/should to do for security.

I would like to set up my system sp that the session times out and requires a password to unlock the screen. Also I would like a firewall and maybe virus detection just in case. I want to set up a guest user with minimal to no privileges. How should I go about doing this?
 
Old 05-10-2010, 08:58 AM   #2
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
I don't exactly know what I should do for security on my Slackware machine. Please help. Some opinions would be nice.
 
Old 05-10-2010, 09:10 AM   #3
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,126

Rep: Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297
Go to "Settings," then to "Screensaver" and set it up
as you would like. Simple enough.
You can download and install ClamAV for virus detection.
Check Alien Bob's site,

http://connie.slackware.com/~alien/slackbuilds/

for a recent version.

For various Xfce plugins check Mr. Workman's site,

http://rlworkman.net/pkgs/

Last edited by cwizardone; 05-10-2010 at 09:12 AM.
 
Old 05-10-2010, 09:27 AM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by Goldfish777 View Post
Hello, and thanks in advance for any future help on this. First and foremost please give me your opinions on what I want/should to do for security.

I would like to set up my system sp that the session times out and requires a password to unlock the screen. Also I would like a firewall and maybe virus detection just in case.
Alien Bob has a firewall generator here:

http://connie.slackware.com/~alien/efg/

Follow the steps and save the resulting script to /etc/rc.d/rc.firewall and make it executable:

Code:
chmod +x rc.firewall
The firewall will start every time you start your machine. To start it immediately, do this:

Code:
/etc/rc.d/rc.firewall start
 
Old 05-10-2010, 03:28 PM   #5
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
Ok I tried it. The firewall generated according to my preferences. The firewall immediately cut off my internet connection and when I started it it gave me an error output as follows:

[code/]
/etc/rc.d/rc.firewall: line 9: Linux.: command not found
/etc/rc.d/rc.firewall: line 32: parameters.: command not found
Loading kernel modules ...
/etc/rc.d/rc.firewall: line 167: dhcp).: command not found
net.ipv4.tcp_syncookies = 1
/etc/rc.d/rc.firewall: line 188: interface: command not found
/etc/rc.d/rc.firewall: line 190: single-homed: command not found
/etc/rc.d/rc.firewall: line 192: configurations: command not found
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.secure_redirects = 1
net.ipv4.conf.all.log_martians = 1
Flushing Tables ...
Create and populate custom rule chains ...
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 398: LOG: command not found
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 400: DROP: command not found
/etc/rc.d/rc.firewall: line 492: -j: command not found
Process INPUT chain ...
/etc/rc.d/rc.firewall: line 563: -j: command not found
Process FORWARD chain ...
Process OUTPUT chain ...
Load rules for nat table ...
/etc/rc.d/rc.firewall: line 649: them: command not found
/etc/rc.d/rc.firewall: line 651: ability: command not found
/etc/rc.d/rc.firewall: line 654: another: command not found
/etc/rc.d/rc.firewall: line 656: host,: command not found
/etc/rc.d/rc.firewall: line 658: syntax error near unexpected token `in'
/etc/rc.d/rc.firewall: line 658: `in'
[/code]
 
Old 05-10-2010, 03:35 PM   #6
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
In case you haven't noticed, I dont really know much in the way of scripting.
 
Old 05-10-2010, 03:56 PM   #7
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Rep: Reputation: Disabled
For your firewall, Quicktables still works...


http://qtables.radom.org/
 
Old 05-10-2010, 08:37 PM   #8
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
Ok I think the firewall is running and working properly. I don't really know if it is even running. How do I tell whether or not it is actually running?
 
Old 05-10-2010, 08:48 PM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
If you are directly connected to the internet without a gateway then you can try www.grc.com . If you have a router, it will just see what is happening with the router. From a terminal
Code:
nmap xxx.xxx.xxx.xxx ##<-- your IP address
will tell you what ports are open.
 
Old 05-10-2010, 08:53 PM   #10
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
It told me which ports are opened and closed but how does that tell me that the firewall is actually working?
 
Old 05-10-2010, 09:04 PM   #11
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
It doesn't particularly. As I stated it will tell you which ports are open and closed, it can show you if your firewall IS NOT working.

http://www.howtoforge.com/test_your_...l_with_ftester looks like it has tools to test your firewall a little further.

You could also enable a service like XDMCP listening which the firewall is supposed to block, and then look to see what nmap has to say about the corresponding port.
 
Old 05-10-2010, 10:03 PM   #12
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by Goldfish777 View Post
I want to set up a guest user with minimal to no privileges.
Just restrict the list of groups that the guest user belongs to.

Last edited by dugan; 05-10-2010 at 10:16 PM.
 
Old 05-11-2010, 02:43 AM   #13
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by Goldfish777 View Post
Ok I tried it. The firewall generated according to my preferences. The firewall immediately cut off my internet connection and when I started it it gave me an error output as follows:

[code/]
/etc/rc.d/rc.firewall: line 9: Linux.: command not found
/etc/rc.d/rc.firewall: line 32: parameters.: command not found
Loading kernel modules ...
/etc/rc.d/rc.firewall: line 167: dhcp).: command not found
net.ipv4.tcp_syncookies = 1
/etc/rc.d/rc.firewall: line 188: interface: command not found
/etc/rc.d/rc.firewall: line 190: single-homed: command not found
/etc/rc.d/rc.firewall: line 192: configurations: command not found
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.secure_redirects = 1
net.ipv4.conf.all.log_martians = 1
Flushing Tables ...
Create and populate custom rule chains ...
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 398: LOG: command not found
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 400: DROP: command not found
/etc/rc.d/rc.firewall: line 492: -j: command not found
Process INPUT chain ...
/etc/rc.d/rc.firewall: line 563: -j: command not found
Process FORWARD chain ...
Process OUTPUT chain ...
Load rules for nat table ...
/etc/rc.d/rc.firewall: line 649: them: command not found
/etc/rc.d/rc.firewall: line 651: ability: command not found
/etc/rc.d/rc.firewall: line 654: another: command not found
/etc/rc.d/rc.firewall: line 656: host,: command not found
/etc/rc.d/rc.firewall: line 658: syntax error near unexpected token `in'
/etc/rc.d/rc.firewall: line 658: `in'
[/code]
Did you do a full install of Slackware? This is the recommended method of installation for new users. The script itself is straightforward; I am no expert myself and I find it very easy to use.

If you are behind a router you should be safe to disable the executable bit on rc.firewall again and issue the following command to stop the firewall, if indeed it is running:

Code:
chmod -x /etc/rc.d/rc.firewall
Code:
/etc/rc.d/rc.firewall stop
I can't help any more than that, unless you need advice on each question the firewall generator asks you, in which case I'd recommend you visit one of the relevant forums - perhaps networking or security.
 
Old 05-11-2010, 09:18 AM   #14
Goldfish777
Member
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Did you do a full install of Slackware? This is the recommended method of installation for new users. The script itself is straightforward; I am no expert myself and I find it very easy to use.
I had it install everything except KDE and the other stuff that is directly related to KDE(like the multilingual support for it).

That was the previous firewall that was giving me error and stopping access to the internet. The Quick builds one that you gave me seems to be working fine. I followed the instructions and everything is good.
 
Old 05-11-2010, 11:19 AM   #15
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Rep: Reputation: 20
Quote:
Originally Posted by Goldfish777 View Post
Ok I tried it. The firewall generated according to my preferences. The firewall immediately cut off my internet connection and when I started it it gave me an error output as follows:

[code/]
/etc/rc.d/rc.firewall: line 9: Linux.: command not found
/etc/rc.d/rc.firewall: line 32: parameters.: command not found
Loading kernel modules ...
/etc/rc.d/rc.firewall: line 167: dhcp).: command not found
net.ipv4.tcp_syncookies = 1
/etc/rc.d/rc.firewall: line 188: interface: command not found
/etc/rc.d/rc.firewall: line 190: single-homed: command not found
/etc/rc.d/rc.firewall: line 192: configurations: command not found
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.secure_redirects = 1
net.ipv4.conf.all.log_martians = 1
Flushing Tables ...
Create and populate custom rule chains ...
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 398: LOG: command not found
iptables v1.4.3.2: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
/etc/rc.d/rc.firewall: line 400: DROP: command not found
/etc/rc.d/rc.firewall: line 492: -j: command not found
Process INPUT chain ...
/etc/rc.d/rc.firewall: line 563: -j: command not found
Process FORWARD chain ...
Process OUTPUT chain ...
Load rules for nat table ...
/etc/rc.d/rc.firewall: line 649: them: command not found
/etc/rc.d/rc.firewall: line 651: ability: command not found
/etc/rc.d/rc.firewall: line 654: another: command not found
/etc/rc.d/rc.firewall: line 656: host,: command not found
/etc/rc.d/rc.firewall: line 658: syntax error near unexpected token `in'
/etc/rc.d/rc.firewall: line 658: `in'
[/code]
Did you use nano or similar text editor that cuts lines to fit into window? Same thing happened to me when I created my firewall. You just need to copy and paste the whole thing from generator with another editor that doesn't cut lines to fit into window. Or just fix the lines yourself.
 
  


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
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM
Slackware Current-xfce4-compiz davimint Linux - Software 1 05-01-2007 08:44 PM
Xfce4.4RC1 on Slackware 11.0RC4 fcaraballo Slackware 2 09-06-2006 06:11 PM
XFCE4 and setting browser Matir Linux - Software 2 06-19-2005 11:25 AM
xfce4 setting file associations Gyper Linux - Newbie 5 06-27-2004 04:18 AM

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

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