Bootstrap FreeKB - Tomcat - Linux iptables firewall
Tomcat - Linux iptables firewall

Updated:   |  Tomcat articles

For instructions on how to add rules to iptables, refer to how to configure the iptables firewall in Linux.

Add the following rule to iptables.

iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8009 -j ACCEPT
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT

 

After adding these rules, save the changes.

[root@server1 ~]# iptables-save > /etc/sysconfig/iptables

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 57e7f5 in the box below so that we can be sure you are a human.