Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mac os X as router



On Tuesday, May 1, 2001, at 10:56 AM, Paramjit Cheema wrote:

hi all

can anybody help me in setting mac os X as a router and firewall

please help how can i start

1. routed daemon at startup

I believe that you can cause 'routed' to be invoked at startup by changing the line
ROUTER=-AUTOMATIC-
to
ROUTER=routed

in the file '/etc/hostconfig'.

If that doesn't work, you can add a line to the file
/System/Library/StartupItems/Network/Network
to start the router. This should probably be the last line in the script.

2. how can i start ipfw rules at startup

Someone already answered this by pointing you at brickhouse. That will work for Mac OS X, but not for 'pure' Darwin.

For Darwin, you can put ipfw rules in the above startup script, following the loading of the IPFirewall kernel extension.

3. where should i put the information about my interfaces in iftab or
elsewhere

The proper (only) place for interface configuration in pure Darwin is currently the file '/etc/iftab'. Each entry in the file should look like an ifconfig line, e.g.,

lo0 inet 127.0.0.1 netmask 255.0.0.0 up
en0 inet -AUTOMATIC-

The token '-AUTOMATIC-' will cause the config program to use DHCP. If you are using manually assigned information, follow the template for the loopback interface.

If you are using Mac OS X, use the network control panel (invoke the 'system preferences' app) to configure your interfaces. If you have a simple setup using, e.g., only DHCP, you should have to do nothing beyond assuring your network interface is plugged in or otherwise made active.

Regards,

Justin

Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics |
Director of Technology | Her profession's her religion
Nexsi Corp. | Her sin is her lifelessness.
1959 Concourse Drive |
San Jose, CA 95131 |
*---------------------------------------*-------------------------------*


References: 
 >mac os X as router (From: Paramjit Cheema <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.