 |
 |
 |
 |
| 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. |

1st January 2009, 12:31 PM
|
|
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
|

1st January 2009, 12:59 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 66

|
|
|
With 'netstat -l' and 'lsof -i' you get open ports.
|

1st January 2009, 02:27 PM
|
|
Registered User
|
|
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390

|
|
Quote:
Originally Posted by d3n0
With 'netstat -l' and 'lsof -i' you get open ports.
|
Any software that can I use?
__________________
fedora
|

1st January 2009, 03:34 PM
|
|
Registered User
|
|
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390

|
|
|
Can someone tell me how to use portsentry?
__________________
fedora
|

1st January 2009, 04:58 PM
|
|
Registered User
|
|
Join Date: Oct 2008
Location: Netherlands
Posts: 338

|
|
Quote:
Originally Posted by cola
Can someone tell me how to use portsentry?
|
did some one told you how to use google?
|

1st January 2009, 05:06 PM
|
 |
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/
|

2nd January 2009, 03:11 AM
|
|
Registered User
|
|
Join Date: Apr 2008
Location: www.metasdata.com
Posts: 414

|
|
Quote:
Originally Posted by JohnVV
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.
|

1st January 2009, 07:02 PM
|
|
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
|

1st January 2009, 08:05 PM
|
 |
Retired Community Manager -- Banned from Texas by popular demand.
|
|
Join Date: Sep 2007
Location: NYC
Posts: 8,142

|
|
|
|

2nd January 2009, 02:54 AM
|
 |
Registered User
|
|
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907

|
|
|
|

2nd January 2009, 03:19 AM
|
 |
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.
|

2nd January 2009, 03:23 AM
|
 |
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.
|

2nd January 2009, 04:13 AM
|
|
Registered User
|
|
Join Date: Apr 2008
Location: www.metasdata.com
Posts: 414

|
|
Quote:
Originally Posted by marinaccio
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.
|

2nd January 2009, 06:37 AM
|
 |
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
|

2nd January 2009, 10:30 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 17:24 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|