How to close listening port in Ubuntu 10.04
I know that ports are, by default, not filtered; they simply don't respond to requests if there are no services listening on the port. Well, running netstat -tulpn gives:
Code:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - Code:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Thanks! |
Ok, just realized I could simply kill the PID of the service to end it.
Code:
ps aux | grep cupsd Code:
kill -9 <PID> |
localhost:631 is the cups web browser admin interface.
If you have no printer you could just uninstall cups. |
Stop Cups service for that session
Code:
service cupsd stop Code:
chkconfig cupsd off |
All times are GMT -5. The time now is 08:17 PM. |