Finally found a solution, Apple doesn't make this easy...
In order to do this you'll need to edit the natd.plist file on your Mac OS X Server machine. It is located at:
Code:
/etc/nat/natd.plist
This is an XML file. You'll want to add the following code block just before the closing
array and
dict tags.
Code:
<key>redirect_port</key>
<array>
<dict>
<key>aliasIP</key>
<string>INCOMING IP</string>
<key>aliasPortRange</key>
<string>INCOMING PORT</string>
<key>proto</key>
<string>tcp</string>
<key>targetIP</key>
<string>OUTGOING IP</string>
<key>targetPortRange</key>
<string>OUTGOING PORT</string>
</dict>
<dict>
<key>aliasIP</key>
<string>INCOMING IP</string>
<key>aliasPortRange</key>
<string>INCOMING PORT</string>
<key>proto</key>
<string>tcp</string>
<key>targetIP</key>
<string>OUTGOING IP</string>
<key>targetPortRange</key>
<string>OUTGOING PORT</string>
</dict>
</array>
You'll only want to change the
string blocks, do not change anything within a
key block.
Add as many dict blocks as you need to accommodate your redirect rules. After you have made the necessary changes simply restart NAT and voila, you're done!
Additional info:
Apple
CyBeRHQ.nl