![]() |
Alas, one of the machines is a PC.:(
|
Quote:
|
Quote:
I've been messing with natd and ipfw on the Mac Mini. Here's the config so far... 192.168.0.x network - AirPort Express at 192.168.0.1 - gateway to internet - Mac Mini connected using AirPort 192.168.10.x network - Mac Mini using Ethernet at 192.168.10.1 - D-Link connected using Ethernet to Mac Mini at 192.168.10.254 - PSP, Nintendo DS, etc. connecting to D-Link, getting a 192.168.10.x IP via DHCP from the D-Link. The Mac Mini's set up as so: - ip.forwarding sysctl enabled - ipfw rule added to send incoming packets from the ethernet card to the natd service - natd configured to translate 192.168.10.x-sourced packets to appear to come from 192.168.0.x network. This means that devices on the 192.168.10.x network can talk to the 0.x network. If those devices have their gateway set to the AirPort's address (192.168.0.1), then they can talk to the internet. Now, I need to insert some ipfw rules before the natd rule. These need to look at all packets arriving on the ethernet port and check where they're headed to. If they're headed to any 192.168.0.x IP other than the AirPort, it should reject them. Cool! (by the way, I think I'll alert a moderator to this thread -- I think maybe its a candidate for splitting out some posts into another thread!) (edit: no I won't! Just read on the 'alert' page that it's for reporting spam or abuse only. I guess I'm used to the macrumors forums where 'alert' is also used for housekeeping!) (edit again: it's working! My ipfw ruleset on the mini looks like: 00500 divert 8668 ip from any to any via en1 00501 allow ip from 192.168.10.0/24 to 192.168.0.1 00502 deny ip from 192.168.10.0/24 to 192.168.0.0/24 00503 deny ip from 192.168.10.0/24 to me 65535 allow ip from any to any The first rule passes incoming packets through natd. The second checks if the packet's destined for the router and if so, lets it go. -- if it matches that rule, no further matching is done -- The third drops the packet if it's destined for any machines on my secure network The fourth prevents any direct connections from the insecure network to the mini itself The final rule simply catches all other traffic which doesn't match the earlier rules. I've had a few games of Mario Kart DS online and it's working great. I might need to investigate to see if there's any additional rules/options I need to add to guard against spoofed source IPs or such.) |
Quote:
|
Quote:
Tell him to use sharepoints for OS X since it will modify your samba config file for you and allow other drives to be shared. |
Thanks, TL.
|
Quote:
1. Apple's "Designing AirPort Extreme 802.11n Networks" document seems to say the Internet modem should connect via Ethernet to the N Base Station's WAN port, which connects via Ethernet to the G Base Station's (WAN or LAN?) port. You connected your base stations in the opposite order, with the modem connecting directly to the G Base Station, not the N Base Station ... how come? 2. Is "don't distribute IP addresses" in your post equivalent to setting up the base station as a "bridge" base station? Put another way, which of your base stations (if either one) is set up with "Off (Bridge Mode)" as its method of Connection Sharing? 3. I gather that whichever base station does not connect directly to the Internet modem needs to be a bridge base station, while the one that hooks directly to the modem (I'll call it the "main" base station) must "Share a public IP address" using DHCP and NAT, correct? 4. If I use my G Base Station as the bridge base station, which Ethernet port on it should the cable from the main base station go into: the WAN port, or the LAN port? (I gather that the Internet modem connects to the WAN port on the main base station, so a (or the only) LAN port on the main base station is cabled to the bridge base station, right?) Thanks in advance for your help. |
Quote:
Quote:
Quote:
Quote:
|
| All times are GMT -5. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.