/
How to check blocked port of server.
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
How to check blocked port of server.
Way 1:
Using telnet command :
Syntax : telnet <Host_name> <port_no>
telnet test.openspecimen.org 80
Use the above command from outside the server machine. If port 80 is open. "Connected to test.openspecimen.org." message will be displayed on the terminal.
Way 2 :
Listing down iptables rules. Below is the command to list iptables rules :
sudo iptables -L
Check if there is any rule set for port 80, in the same row if under 'Target' column DROP option is present then port 80 is blocked.
Way 3 :
The below commands will display open ports of the server.
Operating system | command |
---|---|
Ubuntu | sudo ufw status |
CentOS / RHEL | sudo firewall-cmd --list-all |
, multiple selections available,
Related content
Remove 'DEFINER' entries from database dump file
Remove 'DEFINER' entries from database dump file
Read with this
How to block specific API at Apache level?
How to block specific API at Apache level?
More like this
Configure Apache
Configure Apache
More like this
Email Configuration Testing
Email Configuration Testing
More like this
How to start/stop Apache service.
How to start/stop Apache service.
More like this
How to fix half-closed TCP connections?
How to fix half-closed TCP connections?
More like this
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com