Created
June 15, 2018 04:05
-
-
Save plusreed/68e84fcb3a5650c6b2bc181858e6b2ac to your computer and use it in GitHub Desktop.
Check how many connections you have to your MTProxy server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PORT=941 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run me as root or with sudo" | |
exit | |
fi | |
netstat -anp | grep ":${!PORT}" | grep "ESTABLISHED" | echo "Current MTProxy connections: $(wc -l)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment