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 1st January 2009, 12:31 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Security in Fedora 10

Hello everybody.
Would someone please tell me how can I check the ports whether these are open or close?
Which software should I use (or the commands from terminal)?
__________________
fedora
Reply With Quote
  #2  
Old 1st January 2009, 12:59 PM
d3n0 Offline
Registered User
 
Join Date: Nov 2008
Posts: 66
With 'netstat -l' and 'lsof -i' you get open ports.
Reply With Quote
  #3  
Old 1st January 2009, 02:27 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Quote:
Originally Posted by d3n0 View Post
With 'netstat -l' and 'lsof -i' you get open ports.
Any software that can I use?
__________________
fedora
Reply With Quote
  #4  
Old 1st January 2009, 03:34 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Can someone tell me how to use portsentry?
__________________
fedora
Reply With Quote
  #5  
Old 1st January 2009, 04:58 PM
bd54338rre Offline
Registered User
 
Join Date: Oct 2008
Location: Netherlands
Posts: 338
Quote:
Originally Posted by cola View Post
Can someone tell me how to use portsentry?
did some one told you how to use google?
Reply With Quote
  #6  
Old 1st January 2009, 05:06 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
there is nmap and a nmap gui in the repos and in the install dvd
and for the instructions on using nmap see:
http://nmap.org/
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #7  
Old 2nd January 2009, 03:11 AM
metatron Offline
Registered User
 
Join Date: Apr 2008
Location: www.metasdata.com
Posts: 414
Quote:
Originally Posted by JohnVV View Post
there is nmap and a nmap gui in the repos and in the install dvd
and for the instructions on using nmap see:
http://nmap.org/
There's also a new book out on Nmap called Nmap Network Scanning by Fyodor himself. I've only just started looking through it. It covers everything in the documentation that you find at the website and then some.
Reply With Quote
  #8  
Old 1st January 2009, 07:02 PM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Hello everybody.
Would someone please mention some useful commands for using nmap with explanation?(How to open or close ports)
__________________
fedora
Reply With Quote
  #9  
Old 1st January 2009, 08:05 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
http://linux.byexamples.com/archives...software-nmap/

This took about two minutes of googling to find.
Reply With Quote
  #10  
Old 2nd January 2009, 02:54 AM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
well the docs on the nmap site are also in
Code:
man nmap
and there is " http://www.google.com/linux "
http://www.google.com/linux?hl=en&q=...al&btnG=Search
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #11  
Old 2nd January 2009, 03:19 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
Whoa there ... this thread isn't answering the question

netstat -l only shows the ports *currently* open for tcp listening plus udp
lsof -i shows all open sockets including those on lo0 that we don't care abt for security.
nmap is a better since it shows both ports that are opened/closed/filtered for both tcp and udp and you can use nmap options to scan the entire port range (not the default) and only specific external interfaces.


Ultimately you want to use "iptables -L -n" to see which input rules your firewall software generated accept packets. and on which ports. The rest is interesting but has nothing to do with enforced security.

---
Actually "iptables -S INPUT" shows more of the proper details. Mine looks like this:
Quote:
-P INPUT ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 631 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 631 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 631 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
You can all read the iptables man page as well as I, but the point is that only port 631 (ipp, cups) and also port 22 (ssh) are accessible from the outside.

Last edited by stevea; 2nd January 2009 at 04:17 AM.
Reply With Quote
  #12  
Old 2nd January 2009, 03:23 AM
marinaccio's Avatar
marinaccio Offline
Registered User
 
Join Date: Oct 2005
Location: U.S.A.
Age: 34
Posts: 66
I would second nmap, if you are new to it, try it with a graphical front end. Hope that helps.
__________________
Registered linux user #418499
Family Site www.MarinaccioFamily.com
Web Dev Site www.MarinaccioFamily.biz
Resume www.JosephMarinaccio.com

FC9 T5500 4Gig
IPCop 2.6Ghz 1Gig R/G/O/B
CentOS 5 Dual P3 1Gig - Dev Server
Reply With Quote
  #13  
Old 2nd January 2009, 04:13 AM
metatron Offline
Registered User
 
Join Date: Apr 2008
Location: www.metasdata.com
Posts: 414
Quote:
Originally Posted by marinaccio View Post
I would second nmap, if you are new to it, try it with a graphical front end. Hope that helps.
I'm not trying to start a debate about this, because I know every user is different, but personally I find the gui to be crap. I found it easier to learn with a browser open to the doc page and a terminal to play around with Nmap in the CLI.
Reply With Quote
  #14  
Old 2nd January 2009, 06:37 AM
joe.pelayo's Avatar
joe.pelayo Offline
An ape descendant
 
Join Date: Dec 2006
Location: Mexico City
Age: 29
Posts: 3,101
Try https://www.grc.com/x/ne.dll?bh0bkyd2

No need to install anything.

Thanks.
Joe.
__________________
Notebook: Acer Aspire 5536-5112.
AMD Athlon X2 QL64 @ 2.1GHz, 4GB DDR2 PC2-5300, ATI Radeon HD3200 (256MB), 250GB Toshiba HDD, HL-DT-ST DVDRAM GT20N
Fedora 16 x86_64

Netbook: Acer Aspire One A150
Intel Atom N270 @ 1.6GHz, 1.5 GB DDR2 PC2-4200, Intel Graphics (8MB?), 160GB Seagate HDD
Fedora 15 i686
Reply With Quote
  #15  
Old 2nd January 2009, 10:30 AM
cola Offline
Registered User
 
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390
Thanks all for your specific replies.
It saved a lot of time from googling.

This is really a good tutorial for the beginners who are using nmap.
http://www.gnulinuxclub.org/index.ph...=350&Itemid=31

When I type zenmap or xnmap why same window appears.(naming zenmap).
And after installing nmap why cant I see an icon of it in Applications>System tools>"nmap" or in other place.
Would someone please tell?
__________________
fedora
Reply With Quote
Reply

Tags
fedora, security

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
Fedora security toolshed7777 Security and Privacy 9 7th June 2005 06:09 PM
FREE Fedora Server Security Audit by Fedora Forum Staffs ewdi News 11 12th August 2004 09:17 PM
Fedora Security Fedoran00bi Servers & Networking 8 23rd March 2004 05:59 PM


Current GMT-time: 17:24 (Wednesday, 19-06-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