Howto Close Open Port Ubuntu
Howto Close Open Port Ubuntu
askubuntu.com
Any suggestions?
You can use iptables to block the port on the network level
without having to close the application. The port would still
appear open, but will be unreachable.
1 of 2 2/3/18, 12:37 PM
command line - How to close an open port in U... about:reader?url=https://askubuntu.com/questi...
If you want to close port you have to kill process or stop relative
service.If you want run services only for your local box you can
configure respective service to listen on localhost/127.0.0.1 not
on all available (0.0.0.0) ips.
for closing listen port in ubuntu you can use below command
-t : This flag specifies that lsof should produce terse output with
process identifiers only and no header - e.g., so that the output
may be piped to kill(1). This option selects the -w option.
2 of 2 2/3/18, 12:37 PM