View Full Version : [ubuntu] [SOLVED] Listening ports and Firestarter rules
lovinglinux
September 5th, 2008, 02:23 PM
I'm wondering if any application that I installed could be listening to inbound connections without my knowledge? For instance, MythTV installs MySQL and load it on startup.
So, is there any application that could monitor for listening ports on-the-fly?
I also would like to know if it is possible to export Firestarter rules. I have a separate partition for /home, but every time I re-install Ubuntu I have to insert the Firestarter rules again.
cdenley
September 5th, 2008, 03:11 PM
To check what processes are listening for connections
sudo netstat -plntu
The firestarter configuration file is located at:
/etc/firestarter/configuration
I would probably just copy that whole directory.
jerome1232
September 5th, 2008, 03:16 PM
You could also run nmap from another host, running it on the same machine won't be accurate because some apps are setup to listen on the loopback interface (cups for example), these will show up on a scan of localhost but aren't accessible from a remote machine.
cdenley
September 5th, 2008, 03:22 PM
You could also run nmap from another host, running it on the same machine won't be accurate because some apps are setup to listen on the loopback interface (cups for example), these will show up on a scan of localhost but aren't accessible from a remote machine.
The command I posted shows which interface it is listening on
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 7060/cupsd
127.0.0.1=local loopback device
jerome1232
September 5th, 2008, 03:33 PM
That it does, :) I suppose 0.0.0.0:port number means all interfaces, but what does foreign address mean?
cdenley
September 5th, 2008, 03:45 PM
That it does, :) I suppose 0.0.0.0:port number means all interfaces, but what does foreign address mean?
man netstat
Address and port number of the remote end of the socket. Analogous to "Local Address."
That doesn't really apply for applications that are listening for connections. That is more for when you don't use the "-l" option. It will show what remote hosts you are currently connected to.
jerome1232
September 5th, 2008, 03:54 PM
I checked the man page but that quote didn't make much sense to me, I get it now though thanks.
lovinglinux
September 5th, 2008, 05:14 PM
To check what processes are listening for connections
sudo netstat -plntu
The firestarter configuration file is located at:
/etc/firestarter/configuration
I would probably just copy that whole directory.
Thank you very much!
You could also run nmap from another host, running it on the same machine won't be accurate because some apps are setup to listen on the loopback interface (cups for example), these will show up on a scan of localhost but aren't accessible from a remote machine.
Unfortunately, not an option. But thanks anyway.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.