Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > NAT routing question!

NAT routing question!
Thread Tools
Koldolme
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Mar 30, 2001, 05:56 PM
 
My macOSX machine is running as a NAT-server using:
---------------------------------------------------
#!/bin/sh
natd -dynamic -interface dc0
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via dc0
/sbin/ipfw add pass all from any to any
---------------------------------------------------
My question is: What commands should I add to route all incoming traffic on a specific port to a special computer on my internal network???

For example: Every package sent through port 21 (ftp) will be redirected to machine 192.0.0.9 on my internal network. Is this possible with natd??
     
ppmax
Dedicated MacNNer
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 30, 2001, 07:33 PM
 
i think the proper term for this is port mapping...

sorry i cant help more--im just learning this stuff too. but if you make it thru this maze pls post a short tutorial on your mac.com homepage..these boards are way too slow
ppmax
     
Koldolme  (op)
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Apr 2, 2001, 01:04 PM
 
Doesn't anyone know how to do this?
I have tried with ipfw by using the "fwd" action but I can't make it work!!
     
dark3lf
Mac Elite
Join Date: May 2000
Status: Offline
Reply With Quote
Apr 2, 2001, 01:38 PM
 
Either mount my iDisk (dark3lf) or go to http://homepage.mac.com/dark3lf , get NAT.tar and nat.rtf. Most, if not all, is explained.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:58 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,