Setting Linux Open Port

1.Execute netstat -anp  commands to view ports


2.Close port

iptables -A OUTPUT -p tcp --dport  port -j DROP

3.Open port

iptables -A INPUT -ptcp --dport  8888 -j ACCEPT

Add a Comment

Your email address will not be published. Required fields are marked *