![]() ![]() ![]() REJECT all - anywhere anywhere reject-with icmp-host-prohibitedĪs can be seen in the output, there is a REJECT line in the INPUT chain at the end that says, reject all. ~]# iptables -LĪCCEPT all - anywhere anywhere state RELATED,ESTABLISHEDĪCCEPT tcp - anywhere anywhere state NEW tcp dpt:ssh First check the existing iptables rules in effect. First is using the iptables command and second is by creating a configuration file. There are 2 ways to configure iptables to open up port 80. So it is necessary to configure this firewall to enable connections on network ports. Iptables is the firewall on linux that can be configured to accept or reject network traffic based on various kinds of packet level rulesets. So its necessary to open up port 80 for webserver like nginx to work. Only the ssh port (22) was accessible and remote shell worked. This is because centOS by default has some iptables firewall rules in effect. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |