Mailing Lists: Apple Mailing Lists

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

natd and two nics



I hate to ask because I'm sure it's been covered but I'm new to the list. I want to use our G4 server as a firewall and proxy server -- to replace an aging linux box. I know I should get a hardware router but this is a school and you know how they are with money.

I set up DHCP to dish out a range of addresses for the PCI card (a DLink, seems to work fine) ; the card is 10.0.0.1 and the range is 2 - 253. The internal ethernet is on a fractional T1 and it works going out.

I'm having trouble configuring natd and ipfw to get my DHCP clients out on the net. I tried installing geeroute which just seems to take a shot at setting up natd and ipfw. Of course it doesn't work. You can look at the config script and tell it won't. I tried to fiddle with some of the settings but I can't remember all I need to make this work. Here's the script:

#!/bin/sh
# Routing Script by QQ
ifconfig en0 alias 192.168.150.1 netmask 255.255.255.0

natd -interface en0

/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via en0
/sbin/ipfw add allow ip from any to any

For one thing I don't think I want that first line because I have two ethernet devices. Second, the device should be en1 for the pci device. I think the real problem is with the ipfw rules. Can anyone offer advice ?

Thanks,
Matt

--
Matt Mashyna
Villa Maria Elementary
Erie, PA USA
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.



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.