Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I am at work, Pandora is blocked on my LAN. (ethernet connection) We purchased a cable connection and have a wireless router hooked up just for this reason. How do I route all traffic to/from through only this interface?

I did it on Linux by creating a static route. I've googled around a bit but can't seem to find anything interface specific. Everything seems to just want me to create a static route based on what my default gateway is. Unfortunately, I use this laptop everywhere... so that changes.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, gronostaj, Raystafarian, Scott, Nifle Aug 13 '13 at 12:18

This question was marked as an exact duplicate of an existing question.

If you did it in Linux, then why not just do similar and create a static route in OSX? That IS what you should be aiming to do, but I'm unclear on what you mean by "interface specific"? You create a route specifying the network and what gateway/interface to use to get to it, that's how static routes work. Where are you getting stuck? – Ƭᴇcʜιᴇ007 Jul 28 '13 at 3:39
On linux, I was able to route traffic by interface, not just gateway. I'm sure it's possible on OSX too, I just haven't been able to find how. (hence why I asked here) Even though I CAN do it via IP (all traffic to/from via gateway) my address and gateway change when I get home or change to a different network. – Jim Wharton Jul 28 '13 at 14:09
and no, I've read that question. That is IP specific. The IP will change. I roam on a few different WIFI networks. – Jim Wharton Jul 28 '13 at 14:12

You could try making the interface priority higher on your OSX. Taken from Apple support website:

  1. Choose Apple menu > System Preferences and click Network.
  2. Choose Set Service Order from the Action pop-up menu (looks like a gear).
  3. Drag a service, such as Ethernet, to the top of the list.
  4. Click OK, and then click Apply to make the new settings active.

In your case, you want to drag your WiFi connection up above the Ethernet connection.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.