Check if a port is blocked or allowed using iptables – the better way
Use the following linux command as root user to check if a port is blocked on your machine or not. Copy the command. Replace <PORT> with actual port number e.g. 22 and run it on bash terminal. for tcp ports : #start port=<PORT>; (iptables -nL INPUT | head -1 | grep “DROP” > /dev/null || …
Check if a port is blocked or allowed using iptables – the better way Read More »