Re: Finding out what por to open on the firewall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



François Patte wrote:
>> You have a list of ports and associated devices/protocols in /etc/serveces

Doug:
> Tried the command from root in pclos and got permission denied. I
> don't know what if any ports are in use for anything, but I figured I
> might find out.

I'm surprised that root couldn't read that.  Or do you mean you tried to
execute that?  Rather than trying to read the contents of the
file /etc/services

I've always found netstat to be handy at seeing what services are trying
to do on my computer.  For example:

  netstat -antu

If you drop the "n" option, you'll see the names of things, rather than
the numerical IP addresses and port numbers.  For example:

  netstat -atu

Stick a "p" option onto the list, and you'll see the actual program
associated with the activity.

Either way, you'll see a bunch of lines with some having "LISTEN" as
their status.  Those are services listening to those ports, whether or
not anything is successfully communicating with them at the time.

But before you blindly allow anything that's listening, do some research
into the port numbers that you find listening.  Just open the ones
actually related to what you're trying to resolve.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

Boilerplate:  All mail to my mailbox is automatically deleted, there is
no point trying to privately email me, I only get to see the messages
posted to the mailing list.

Long ago I gave up on using Windows (TM) [Tantrum Machine], and I've
never regretted it.


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux