Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on an iMac, Leopard OSX, and I need to add a new port forwarding entry (TCP protocol) in the iMac itself, since I have no router/modem connected to the iMac, I have Fiber, a network cable from the iMac to the wall directly. So how can this be done in the iMac?

Thank you!

share|improve this question
add comment

migrated from serverfault.com Dec 12 '10 at 10:31

This question came from our site for professional system and network administrators.

1 Answer

OS X Leopard uses a "Personal Application Firewall", so you cannot use the GUI tools in System Preferences to configure port forwarding. However OS X still includes a traditional port-based firewall ipfw which can be configured from the command line. Open a Terminal window and try "sudo ipfw add fwd 192.168.1.1,25 tcp from any to 192.168.1.2 25 in". Replace 192.168.1.1,25 with the external IP/port numbers and 192.168.1.2 25 with the internal IP/port that you want

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.