Indirizzo ip e porte ( IFCONFIG, NETSTAT )
Indirizzo ip delle interfacce del server
# ifconfig eth0 | grep -i inet | awk '{print $2}'
#ifconfig eth0 | grep "inet" | grep -v "inet6" | tr -s " " ":" | cut -f4 -d ":"
Come vedere le porte aperte o in ascolto su server.
# netstat -na | grep LISTEN
# netstat -na | grep LISTEN | grep 7180
tcp 0 0 :::7180 :::* LISTEN
# ifconfig eth0 | grep -i inet | awk '{print $2}'
Come vedere le porte aperte o in ascolto su server.
# netstat -na | grep LISTEN
tcp 0 0 :::7180 :::* LISTEN