我正在使用我inheritance的Tomcat应用程序。 服务器将端口80转发到8080来屏蔽默认端口。
当我inputiptables --list我得到
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
当我inputnetstat -anp --tcp --udp ,没有端口80的引用
grep通过我的/etc/init.d dir我找不到任何相关的引用到端口80。
这是所有托pipe在一个EC2 – 是否有可能这是在更高的水平转发?
我想删除当前端口转发的原因是将应用程序转移到Varnish进行转发和caching
Tomcat在默认情况下侦听8080,因为它假定apache也会运行,并且会导致各种冲突。 这里是一个关于如何让它在80上运行的简短教程。
弄清楚了。
有一个写在/etc/rc.local中的规则,用于从端口80到8080创buildPREROUTING重写规则
由于它是prerouting它没有显示通过调用iptables -L ,但它与iptables -t nat -L