Setting up routing...

daseinx

Registered
OSX is up and running beautifully, but I also want to let my Linux and BeOS machines out to play. I am not familiar with the routing setup under *nix, so I need a little help.

Everytime I set up a static route, nothing gets passed to the ppp0 interface. I have set the host config to IPFORWARDING=-YES-, but things don't want to play.

Any info will be greatly appreciated. Also, if you have some suggestions for configuring natd, I'd like to know that as well.

Thanks,
Lee
 

Mr_Solar_Wind

Registered
You need to write a shell script in your favorite text editor (eg emacs, vi...)

Start script
-----------------

#!/bin/sh

natd -dynamic -interface ppp0
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via ppp0
/sbin/ipfw add pass all from any to any

-----------------
End script

Name the file something like "rc.natd" and set file permissions accordingly (i.e. admin/su access only). Run the script in the console each time you turn on the computer and it'll work great!
 

daseinx

Registered
It works great. nice to know I don't have to shell out extra $ to get all my machines up and going.

Again, thanks much.

Lee
 

daseinx

Registered
Could you give more specific information on the "followed your instructions" and "it won't work" parts?
 
Top