...
/sbin/iptables-save or /etc/init.d/iptables saveEnjoy It!
...
BSD-based Unix systems such as Mac OS X use a tool similar to iptables, called ipfw (for Internet Protocol Fire Wall). This tool is similar in that it watches all network packets go by, and can apply rules to affect those packets, such as "port-forwarding" from port 80 to some other port such as Tomcat's default 8080. The syntax of the rules is different than iptables, but the same idea. For more info, google and read the man page. Here is one possible rule to do the port-forwarding:
No Format |
---|
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
|
How do I debug a Tomcat application?
...