Tomcat - Linux iptables firewall

by
Jeremy Canfield |
Updated: March 09 2020
| 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