RSS LJ

July 22, 2007

RFC: one-armed routing ()

by fluffy at 5:28 PM
So, I got sick of this new Linksys constantly dropping my connections and its general sucktitude, and the current state of consumer routers is pretty depressing. I did notice that OSX supports one-armed routing, however (where you basically pull stupid VLAN tricks to have both the public and private networks routed on a single piece of cable).

So, I set up some one-armed routing, with my Mini acting as the router on Ethernet, with it on a hub connected to the DSL modem, along with my Airport Express access point and a few other devices. The ARP table looks clean on both my Mini and my G5 (I don't see any evidence of ARP entries for things which shouldn't be visible to other things, even after doing a broadcast ping), so I'm assuming that my DSL modem is smart enough to not forward packets to anything other than the upstream gateway (which it acts as an ARP proxy for, I think — it's a bridge rather than a PPPoE modem).

Am I setting myself up for disaster doing this?

(I considered using the G5 as a proper two-armed router, except I can't get a DSL signal from my office and anyway then everything would be routed over my G5's crappy 802.11g connection which is all the way across my apartment from most of my other stuff, and OSX's own "treat this computer as an access point" has crappy WEP options and I doubt it supports WDS and so on.)

The big potential problem I can see is that OSX's firewall doesn't let you specify "open these ports to one network but not the other" and so things like VNC, AFP et al are wide-open, but they'd have to be all-or-nothing and so I'd have to do an ssh tunnel to use them at home too. I guess that's not too difficult to set up but it's annoying.

Comments

#9508 07/22/2007 10:52 pm
OS X has significantly better firewalling support than is exposed in the UI; 'man ipfw' for details, or get a GUI tool to configure it (a number of such tools exist).
#9509 07/23/2007 07:55 am
I figured that was the case, but there's also a limit to how much I want to mess with it. Know any GUIs which are particularly good?
#9510 07/23/2007 08:36 am
ipfw and one-armed NAT don't seem to get along. Oh well. I guess I'll just leave my soft underbelly exposed for a while until I get around to getting a better hardware router.
#9515 07/24/2007 08:33 am
I did manage to find a spare USB ethernet adaptor I had lying around which happens to also have an OSX driver, so now I have a proper two-armed NAT setup. Whee. It'd be funny if honey ends up being my long-term firewall.