Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th January 2010, 11:24 PM
shawn1 Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
steps to securing Fedora 12

Hi

I am relatively new to linux having only used ubuntu 9.10. Trouble is for all the talk of how secure ubuntu is, truth is it kept getting remote hacked (I have a stalker who is messing with me) over and over so now I am going to try fedora in hopes of finally having a secure system.

My question is, what steps do I need to take to try to secure Fedora 12?

Thanks
Reply With Quote
  #2  
Old 17th January 2010, 11:31 PM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
windows_xp_2003firefox
:) shawn1, thank you for your posts. :)

shawn1, thank you for your posts.

Quote:
Originally Posted by shawn1 View Post
...truth is it kept getting remote hacked (I have a stalker who is messing with me) over and over so now I am going to try fedora in hopes of finally having a secure system.

My question is, what steps do I need to take to try to secure Fedora 12?...
Here's a couple starting threads to review...

=====================================

* Help securing my Fedora 11 server -

http://forums.fedoraforum.org/showthread.php?t=234292

* How secure is my fedora 12 -

http://forums.fedoraforum.org/showpo...42&postcount=4

=====================================

Also, trying searching the forum for your subject and review accordingly.

Hope this helps.
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks

Last edited by diamond_ramsey; 17th January 2010 at 11:39 PM.
Reply With Quote
  #3  
Old 17th January 2010, 11:43 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
linuxfedorafirefox
http://docs.fedoraproject.org/ and start reading both SELinux and Security Guide, you can also install Fedora Security Guide with Yum so that it's always available to you.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #4  
Old 18th January 2010, 01:10 AM
Evil_Bert's Avatar
Evil_Bert Offline
Retired Again - Administrator
 
Join Date: Nov 2007
Location: Reality
Posts: 3,034
linuxfedorafirefox
Quote:
Originally Posted by shawn1 View Post
... it kept getting remote hacked ...
What services were you running that allowed that to happen? Did you have a firewall running? For a default desktop Linux install, it's pretty hard to get hacked directly. If you're running servers, then you should look at specifically hardening those services as well as general measures.

Also, what indicators did you have that you'd been hacked? What did the hacker actually do to your machine?

Quote:
(I have a stalker who is messing with me)
Keep an image of the hard-drive after a hack event (for evidence - you can use something like SystemRescueCD) and make a complaint to your local police - your stalker may be local also.
__________________
.
Marching to the beat of his own conundrum.
Reply With Quote
  #5  
Old 18th January 2010, 01:24 AM
shawn1 Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
Quote:
Originally Posted by Evil_Bert View Post
What services were you running that allowed that to happen? Did you have a firewall running? For a default desktop Linux install, it's pretty hard to get hacked directly. If you're running servers, then you should look at specifically hardening those services as well as general measures.

Also, what indicators did you have that you'd been hacked? What did the hacker actually do to your machine?


Keep an image of the hard-drive after a hack event (for evidence - you can use something like SystemRescueCD) and make a complaint to your local police - your stalker may be local also.

I wasn't running any services that were not on the default install of ubuntu 9.10. I even removed telnet but they are still getting in. Can't figure out how because after it happenes there are always snippets of logfiles missing.

Indicators that the system is hacked have been

a ssh connection showing in firestarter to a local unix server in the city that this person live in

tabs opening by themselves, commercials playing on speakers not from any web pages I am on

synaptic package manager breaks and won't open

internet speed slows to a halt etc etc

I need to figure out how this is happening so I can stop it. I am even behind a linksys router on a wired connection but still same thing over and over again. Maybe grsecurity will help?
Reply With Quote
  #6  
Old 18th January 2010, 01:44 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
windows_7mozilla
You say
Quote:
Can't figure out how
yet...
Quote:
Originally Posted by shawn1 View Post
a ssh connection showing in firestarter to a local unix server in the city that this person live in
That's how. Disabling telnet but leaving SSH does almost nothing. Most script kiddies and cracking bots don't bother with telnet cracking because server admins don't even have the telnet service running anyway, so crackers and various miscreants focus on SSH anyway.

Disable ssh if you don't need it, blacklist (with iptables or denyhosts) & report the IP, or switch to key-based auth if you need ssh.

EDIT:

Well, wait. If you're behind a router, are you forwarding the port for ssh to the machine?
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner

Last edited by forkbomb; 18th January 2010 at 01:51 AM.
Reply With Quote
  #7  
Old 18th January 2010, 01:55 AM
shawn1 Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
Quote:
Originally Posted by tjvanwyk View Post
You say
yet...That's how. Disabling telnet but leaving SSH does almost nothing. Most script kiddies and cracking bots don't bother with telnet cracking because server admins don't even have the telnet service running anyway, so crackers and various miscreants focus on SSH anyway.

Disable ssh if you don't need it, blacklist (with iptables or denyhosts) & report the IP, or switch to key-based auth if you need ssh.
As far as I know ssh isn't installed with the default ubuntu 9.10 so how did it get on there? Am I missing something here? I'm relatively new to this.
Reply With Quote
  #8  
Old 18th January 2010, 02:20 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
windows_7mozilla
Quote:
Originally Posted by shawn1 View Post
As far as I know ssh isn't installed with the default ubuntu 9.10 so how did it get on there? Am I missing something here? I'm relatively new to this.
It is installed by default on Fedora and running by default in every version of Fedora I've ever used (6-12).

It shouldn't be a security liability unless you have extremely weak passwords that can be cracked by brute-forcing or dictionary cracks.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #9  
Old 18th January 2010, 03:29 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,976
linuxopera
One other thing, which might be mentioned in one of the links provided by Diamond_Ramsey, is to have ssh listen on a different port. (Choose something that isn't used by anything in /etc/services---usually, any port above 1023 should be alright.)

It's not a complete fix in itself, but it will stop automated brute force attacks against ssh.

It's part of what's known as security by obscurity, which in itself, is known to not be all that effective, but it should remove one large group of attackers--they'll move on (in theory, anyway), to easier targets.

As tjvanwyk says, be sure to have decent passwords as well. A few other possibilities with ssh are only to allow some users to login, so they have to get the username as well as a password, and to disable root login. (You can look at man(5) sshd_config for an idea of available options.)

I should add, that in sshd_config, many items have a comment sign(#) in front of them. This doesn't necessarily mean they're not used, it means, at least in some cases, that they are default options, and are being used. For example, you'll see,
Code:
#PermitRootLogin   yes
Although it has a comment sign in front of it, in this case, it's a default option, and is what you have at present. So, when you change it from yes to no, uncomment it as well.
Reply With Quote
  #10  
Old 23rd January 2010, 05:05 AM
johnnymack's Avatar
johnnymack Offline
Registered User
 
Join Date: Oct 2007
Location: Dubai UAE
Posts: 95
linuxfedorafirefox
Best Bet: switch from password auth to pubkey auth..

..Then, you do not need to worry about some uninvited persons entering your system. they can try and try and NEVER gain entry.

Here is a HOW-TO to assist setting up public key auth. It was written for openBSD but the Linux method is the same:

http://open.bsdcow.org/histerical/tu...sh_pubkey_auth

Original credit to tjVanWyck for mentioning this
__________________
Linux Counter # 52009
Reply With Quote
Reply

Tags
fedora, securing, steps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help securing my Fedora 11 server ghettosamson Security and Privacy 4 24th November 2009 06:43 AM
Fedora 9 installation steps kvvsrinivas Installation and Live Media 2 3rd November 2008 06:17 AM
tips for Securing Fedora Core 4 Fedo Security and Privacy 11 22nd December 2005 05:17 PM
securing a dual boot pc (Fedora/windows) nkoplm Security and Privacy 7 15th December 2005 03:07 PM
Securing your Fedora after installation ilja Installation and Live Media 1 11th August 2004 07:08 PM


Current GMT-time: 15:29 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat