osx - Yosemite, double interface (eth/wifi) access a site through a specific interface -


i have macbook, connected ethernet, , wifi. site (lets call facebook) blocked on 1 of interface (ethernet) open on other (wifi), on other hand eth better (fastest , more reliable wifi) use eth priority interface (on top of network preferences), in way there no access blocked site.

i know if there way operating system or browser or other software components must use connection of wifi if , if connection on :80 on eth fail. perfect...or other means solve problem.. it's matter of configuring proper proxy?

thanks in advance.

you modify routing table pass traffic given host or network through chosen gateway.

list routing table:

$ netstat -rn routing tables  internet: destination        gateway              flags        refs      use   netif expire default            10.0.0.1             ugsc           15        0     en0 default            192.168.0.1          ugsci           1        0     en1 [...] 

in case en1 wifi. use wifi connection host x.x.x.x, route traffic host through 192.168.0.1 gateway:

sudo route add -host x.x.x.x 192.168.0.1 

or better add routing entire network used given service:

sudo route add -net x.x 192.168.0.1 

the downside may difficult determine ultimate list of ips, networks used service.

see man route.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -