Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

smurray

macrumors regular
Original poster
May 12, 2008
133
4
I have wifi at work, however it has a pretty strict firewall, blocking things like Gmail's IMAP ports. I can tether through my iPhone 5 using USB, however I lose access to my work printer and other intranet sites by doing so. I was wondering what would happen if I had my phone tethered through USB and also connected to my work wifi at the same time. Is it possible to have my macbook use both connections, or switch back and forth on the fly depending on what I'm doing?
 

meme1255

macrumors 6502a
Jul 15, 2012
748
598
Czechia
Well, it's possible when you bound that connection to specificall network connection ( like Minecraft Server - You can bound it on IP of one from your connections) - Maybe using route command somehow? :confused:
 

ZipZap

macrumors 603
Dec 14, 2007
6,112
1,467
I have wifi at work, however it has a pretty strict firewall, blocking things like Gmail's IMAP ports. I can tether through my iPhone 5 using USB, however I lose access to my work printer and other intranet sites by doing so. I was wondering what would happen if I had my phone tethered through USB and also connected to my work wifi at the same time. Is it possible to have my macbook use both connections, or switch back and forth on the fly depending on what I'm doing?

I believe the answer is no. And you will probably also find you are violating your company's computer user and/or security policy.

If you want to surf freely at work...get an iPad.
 

smurray

macrumors regular
Original poster
May 12, 2008
133
4
I believe the answer is no. And you will probably also find you are violating your company's computer user and/or security policy.

If you want to surf freely at work...get an iPad.

I wouldn't be violating any policy, but thanks for your concern.
 

meme1255

macrumors 6502a
Jul 15, 2012
748
598
Czechia
If you iPhone is jailbroken, I believe that you could be able to make proxy from it (SSH into it) a then acces web through this proxy..
 

smurray

macrumors regular
Original poster
May 12, 2008
133
4
Since it doesn't look like using both at the same time, then my next question is which will it use if both are connected at the same time? If I have my iphone plugged in through USB and am also connected through wifi, which will it default to?
 

switon

macrumors 6502a
Sep 10, 2012
636
1
RE: two or more networks, gateways, VLANs, etc....

I have wifi at work, however it has a pretty strict firewall, blocking things like Gmail's IMAP ports. I can tether through my iPhone 5 using USB, however I lose access to my work printer and other intranet sites by doing so. I was wondering what would happen if I had my phone tethered through USB and also connected to my work wifi at the same time. Is it possible to have my macbook use both connections, or switch back and forth on the fly depending on what I'm doing?

Hi smurray,

Yes, I believe you can have your machine attached at the same time through different interfaces...the only trouble that might arise is how you configure the IP addresses for the different LANs or VLANs. This isn't really a problem, just that you have to be careful that the networks "don't step on each other toes", so to speak. Or , alternatively, they could be extensions of the same network and then you have to make sure the IP addresses don't step on each other. When properly setup, this works fine. Any so-called "gateway" does precisely this type of routing. In many unixes, this routing is handled by the kernel itself in order to be fast.

The way this works is if you reference an IP on one LAN (or the Internet), then your gateway knows which LAN to send the packets out on. This is done through the routing tables. So, for example, say you wish to print to a network printer, then you send the print job to the LAN IP address of the network printer and the connection is made on the printer's LAN through your wireless interface. If, on the other hand, you reference an Internet IP address, then the connection is made through your iPhone tether. As a user, you wouldn't know the difference; it would just work. As the administrator, you would have to set up the different networks and routing tables correctly. (By the way, any router also does this.)

Regards,
Switon

P.S. I still run a Linux box with two ethernet cards in it and the Linux box acts as the gateway appropriately routing packets to the proper LAN.
 

smurray

macrumors regular
Original poster
May 12, 2008
133
4
It seems as though wi-fi takes precedence over the iPhone plugged in through USB. What I'm doing, for now at least, is just enabling wifi when I need to print or use an intranet site and otherwise disable it and connect through my phone.
 

switon

macrumors 6502a
Sep 10, 2012
636
1
RE: gateway...

Hi,

If properly setup, you should be able to do both simultaneously. One should not take precedence over the other since the routing tables will route the packets to the proper network.

But you already have a solution since it appears you don't actually need to have both connections simultaneously.

Switon
 

smurray

macrumors regular
Original poster
May 12, 2008
133
4
Hi,

If properly setup, you should be able to do both simultaneously. One should not take precedence over the other since the routing tables will route the packets to the proper network.

But you already have a solution since it appears you don't actually need to have both connections simultaneously.

Switon

In a perfect world I'd like all internet activity to go through my phone (plugged in via USB) except for a few specific intranet sites and also still be able to access my networked printer at work. Is this something that can be easily configured to work?

*edit* I've figured out how to print. If I move the iPhone connection above the wifi in the priority list then it's almost doing everything I want. It uses the iPhone connection for everything, but it still connects to the networked printer through wifi. Still can't get the intranet site to work. I get a "safari can't find the server" page when I try.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.