Portal Home > Knowledgebase > Server Administration > Trace Network Connections


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 =

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Disk Space Usage (Views: 1236)
Server Crash / Down (Views: 1643)
O/S Info (Views: 1230)
Check Open Ports (Views: 1325)