Score:0

OSX Routing Between 2 NICs on 2 separate hosts

cn flag

A little background: I am building a box that I can ship to a venue that has a Mac Mini and a Sony PTZ camera that connects directly to it via ethernet. I am using a secondary NIC to connect the camera, primary NIC connects to the venues network. From that mac (locally logged in), I can connect, send UDP commands to the camera and everything works.

Now what I want to do, is be able to issue commands from my OTHER mac on the same network and sort of "Proxy" traffic from the primary NIC, to the camera NIC and eventually to the camera. Ultimately these will be connected over a VPN, but for now I am trying to get it working on the same local area network.

Here is a diagram: enter image description here

  • The camera, is directly connected to mac 1 via ETH2 and the camera has an IP of 192.168.2.50. That NIC has an IP of 192.168.2.15
  • Mac 1 also connects to the LAN/Internet with Eth1 and it's IP is 192.168.1.147
  • I want to be able to hit 192.168.2.50 from Mac 2. I tried adding static routes on Mac 2 but it wouldn't work.
Ron Maupin avatar
us flag
Mac 1 needs to be configured to route (not NAT, which is _not_ a substitute for routing) between its two networks. Routers route packets between networks, so you need Mac 1 configured to route packets between the two networks.
cn flag
Hey Ron, thanks so much. Any details you can provide on doing that? Can OSX do it natively, or do I need 3rd party software?
Ron Maupin avatar
us flag
Unfortunately, I do not know the details of that. If this is a personal network, you could ask on [apple.se] or [su].
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.