10.5 Server Port Forwarding Problem

Discussion in 'Mac OS X Server, Xserve, and Networking' started by Isoparm, Jun 16, 2011.

  1. Isoparm, Jun 16, 2011
    Last edited: Jun 16, 2011

    macrumors newbie

    Joined:
    Jul 15, 2005
    #1
    I'm trying to setup port forwarding on my 10.5 Server and running into problems. (I'm not able to do this on the router, so it needs to be done on the server)

    The server has a static IP address to the internet on en0.
    The server is then connected (via en1) to a wireless router which the client machines connect to.
    The server handles all the DHCP requests and the DNS requests.

    I've gone in to the server's natd.plist and added a forwarding rule and made sure that the port is open in the server's firewall. (And eve for good measure I made sure the port is forwarded in the router too)

    But... the forwarding doesn't work.
    I even tried nmap to see if the status of the port and it's showing "closed".


    here's the main rule for the forwarding in the natd.plist and the full natd.plist below it:

    <array>
    <dict>
    <key>proto</key>
    <string>tcp</string>
    <key>targetIP</key>
    <string>192.168.1.35</string>
    <key>targetPortRange</key>
    <string>80</string>
    <key>aliasIP</key>
    <string>68.XXX.XX.XXX</string>
    <key>aliasPortRange</key>
    <string>9701</string>
    </dict>
    </array>


    ----------------------------

    FULL natd.plist:

    -----------------------------

    <plist version="1.0">
    <dict>
    <key>clamp_mss</key>
    <true/>
    <key>deny_incoming</key>
    <false/>
    <key>dynamic</key>
    <true/>
    <key>enable_natportmap</key>
    <true/>
    <key>interface</key>
    <string>en0</string>
    <key>log</key>
    <true/>
    <key>log_denied</key>
    <false/>
    <key>natportmap_interface</key>
    <string>en1</string>
    <key>proxy_only</key>
    <false/>
    <key>reverse</key>
    <false/>
    <key>same_ports</key>
    <true/>
    <key>unregistered_only</key>
    <true/>
    <key>use_sockets</key>
    <true/>
    <key>redirect_port</key>
    <array>
    <dict>
    <key>proto</key>
    <string>tcp</string>
    <key>targetIP</key>
    <string>192.168.1.35</string>
    <key>targetPortRange</key>
    <string>80</string>
    <key>aliasIP</key>
    <string>68.XXX.XX.XXX</string>
    <key>aliasPortRange</key>
    <string>9701</string>
    </dict>
    </array>
    </dict>
    </plist>



    Any thoughts or advice?
     

Share This Page