first prepare a file called natd.conf or something, put it anywhere you like, this is an example file i made
Code:
# example : redirect_port tcp 192.168.0.2:6667 6667
# example 2 : redirect_port tcp 192.168.0.2:2000-3000 2000-3000
# forward web traffic(port 80) to 192.168.0.5:2500
redirect_port tcp 192.168.0.5:2500 80
# bittorrent(192.168.0.3)
redirect_port tcp 192.168.0.3:6881-6889 6881-6889
# quake3 (if i remember the port correctly) (192.168.0.2)
redirect_port udp 192.168.0.2:27960 27960
now make sure that internet sharing is running, then do this:
1. open up a Terminal window and click the zoom button to make it big
2. run
3. copy the whole natd command(/usr/sbin/natd -alias_address....) to your clipboard
4. run
5. wait a few seconds until natd has quit, dont ask me why it takes a few seconds.
6. type "sudo " and paste in the natd command you copied and add " -f <path to your natd.conf>", similiar to this:
Code:
sudo /usr/sbin/natd -alias_address 67.31.86.11 -interface en0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -f /Users/joel/natd.conf
7. then run the command
that should be it
im not sure this works, but i think it should.
just remember this wont stick after a reboot, you have to rerun step 1 to 7 again, you could of course make a shell script that does this for you, but even if you dont, at least its good to have the ports you want to forward saved in a file(natd.conf) so you dont have to retype those everytime you reboot.
Good luck! i hope it works