Portal Home > Knowledgebase > Server Administration > Trace Network Connections
Trace Network Connections
Via command line:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
(the above will list number of connections per IP)
netstat
netstat -n
Block IP in APF type:
apf -d ipaddress
Restart APF Firewall:
apf -r
# This tell you how many sessions are open right now.
cat /proc/net/ip_conntrack | wc -l
# This tells you the maximum number of conntrack entries you can have in
total
cat /proc/sys/net/ipv4/ip_conntrack_max
Once the previous number hits beyond the latter, you should start seeing
these messages. I would increase the latter number by calling:
echo "" > /proc/sys/net/ipv4/ip_conntrack_max
or if you want it to span reboots, you can place the following in
/etc/sysctl.conf
sys.net.ipv4.ip_conntrack_max =
Add to Favourites
Print this Article