Question about multiple internet connections

Discussion in 'OS X Mountain Lion (10.8)' started by smurray, Dec 16, 2012.

  1. smurray macrumors regular

    Joined:
    May 12, 2008
    #1
    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?
     
  2. meme1255 macrumors 6502

    Joined:
    Jul 15, 2012
    Location:
    Czech Republic
    #2
    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:
     
  3. ZipZap macrumors 601

    Joined:
    Dec 14, 2007
    #3
    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.
     
  4. smurray thread starter macrumors regular

    Joined:
    May 12, 2008
    #4
    I wouldn't be violating any policy, but thanks for your concern.
     
  5. meme1255 macrumors 6502

    Joined:
    Jul 15, 2012
    Location:
    Czech Republic
    #5
    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..
     
  6. smurray thread starter macrumors regular

    Joined:
    May 12, 2008
    #6
    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?
     
  7. switon macrumors 6502a

    Joined:
    Sep 10, 2012
    #7
    RE: two or more networks, gateways, VLANs, etc....

    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.
     
  8. smurray thread starter macrumors regular

    Joined:
    May 12, 2008
    #8
    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.
     
  9. switon macrumors 6502a

    Joined:
    Sep 10, 2012
    #9
    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
     
  10. smurray, Dec 20, 2012
    Last edited: Dec 20, 2012

    smurray thread starter macrumors regular

    Joined:
    May 12, 2008
    #10
    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.
     

Share This Page