Benches macOS

2

force an app to use a specific network wh…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi:

I have a client who uses an iMac. There are 2 networks in his office, one a corporate, firewalled ethernet connection and the other a standard DSL connection over Airport. Because of the company firewall protocols, he'll need to use iChat a/v over the wireless network. Is there an easy way to force iChat to specifically use the Airport interface while leaving all other applications using the ethernet interface? (PS - A step by step guide would be helpful, especially if the setup needs to be done via Terminal commands).

Thanks!

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    K T

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The trick is adjusting the routing tables (which doesn't depend on destination port or source app, but does depend on destination host).

    Say your default gateway is 111.222.223.4 and you have a vpn which can route traffic on 666.777.888.9. You want iChat traffic to route over 666.777.888.99, so do this:

    sudo route add mail.myserver.com 666.777.888.9

    Some versions of route might require a "gw" keyword between the address and next hop. If you want to make a whole net route over that next hop, just add a netmask in CIDR notation for the destination, like this:

    sudo route add 192.168.0.0/24 666.777.888.9

    If you want to view the existing routing table, use

    netstat -nrl

    ...or...

    ip route list

    Good luck....

  2. 0

    mcguirek

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for your note, however I'm confused about a couple of things:

    • Does 666.777.888.9 represent the IP address being picked up via the Airport connection or does it represent the router/gateway that Airport is connecting to? I attempted using your commands where 666.777.888.9 was replaced by the address of my router for the Airport connection. Both commands ran properly, however it still won't connect through Airport.

    • In first command, you specify mail.server.com. For the purposes of iChat should this be the usual aim server, login.oscar.aol.com?

    • Will the commands issued permanently update the routing table until I remove them, or are they good for that session only? Does it apply to all users or just the currently logged in user?

    Thanks!