thanks, i already found this, but i cant find it in that
---
I assume my hosts file syntax is wrong as i tried to disable ssh port 1234 connections but they are still there
# echo "" && echo "Number of connections per port" && netstat -tuna | awk -F':+| +' 'NR>2{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | grep 1234 && echo "" && echo "Netstat port 1234:" && netstat -tlnp | grep 1234 && echo "" && echo "Hosts.deny and ssh contianing lines:" && cat /etc/hosts.deny|grep ssh
Quote:
Number of connections per port
51 1234
Netstat port 1234:
tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN 1865/ssh
Hosts.deny and ssh contianing lines:
ssh : ALL EXCEPT /etc/hosts.allow2
|