I have wired connection to intranet / lan of my work (with proxy) and one wireless without proxy that doesn't have access to the office lan. (Like Guest Wifi)My idea is to route all traffic to eth0 and ONLY some traffic (like ssh) to wlan0.I have an idea on how to do this but not so sure.Well, my problem now is that when both are connected, eth0 and wlan0, traffic seems to be intermitent between the 2, Firefox sometimes tries to go out through wlan0 and can not find the proxy server (because its on the ETH0 lan).~$ route -nKernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Iface0.0.0.0         192.168.100.254 0.0.0.0         UG    0      0        0 eth0169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0192.168.25.0    0.0.0.0         255.255.255.0   U     2      0        0 wlan0192.168.100.0   0.0.0.0         255.255.255.0   U     1      0        0 eth0192.168.200.0   192.168.100.253 255.255.255.0   UG    0      0        0 eth0How can I fix it, so Firefox doesn't try to go through wlan0 unleast I specify it?~$ routeKernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Ifacedefault         192.168.100.254 0.0.0.0         UG    0      0        0 eth0link-local      *               255.255.0.0     U     1000   0        0 wlan0192.168.25.0    *               255.255.255.0   U     2      0        0 wlan0192.168.100.0   *               255.255.255.0   U     1      0        0 eth0192.168.200.0   192.168.100.253 255.255.255.0   UG    0      0        0 eth0
With two interfaces, how can I make one the default route and the other an alternate?
linux;networking;ip;route
Firefox can go through wlan0 only in this cases:1) If it would like to use address 169.254.x.x/16, which is automatically added link-local address - you can disable it by uninstall avahi* stuff.2) If you would like to go to some address in the 192.168.25.0/24 network.If you would like to use for address in the 192.168.25.0/24 and for ssh protocol wifi0 interface and for other protocols you would like to use eth0, you have to use policy routing:echo 100 ssh >> /etc/iproute2/rt_tablesip rule add fwmark 100 table sship route add 192.168.25.0/24 dev wifi0 table sship ro add default via 192.168.100.254 dev eth0 table sship ro del 192.168.25.0/24 dev wifi0 table mainiptables -A PREROUTING -t mangle -p tcp --dport 22 -j MARK --set-mark 100Main idea is, that normal routing table doesn't know nothing about network 192.168.25.0/24, but ssh protocol does.You can check Advanced Rounting HOWTO page.