All of lore.kernel.org
 help / color / mirror / Atom feed
* A smart router for more than one default routes
@ 2015-02-26  6:39 Han Changzhe
  2015-02-26  7:30 ` Dave Taht
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Han Changzhe @ 2015-02-26  6:39 UTC (permalink / raw)
  To: lartc

Hello experts,

I'm setting up a routing server on Linux with following links

 1. An Ethernet link (eth0) to the 1st internet link (fast, but can't
    access some sites);
 2. A VPN link (tun0) to provide services to local users;
 3. A VPN link (tun1) to a proxy server as the 2nd internet link (slow,
    free).

My target is:
   * for common internet access, routing the packets through eth0;
   * for the sites can't be accessed through eth0, routing them through 
tun1.

By now, I set the routing table manually for serveral sites and it works 
fine. Because there are thousands of them and the sites change with 
time, so I want a better solution.

My idea is like this: setting up more than one default routes for 
internet access, then dynamically change the route table (or route table 
cache) with some software according to the internet access results.

For example, if we get a timeout from https://www.google.com through 
eth0, the software should try it through tun1 link and, when succeed, 
adding the later route to current route table.

I don't know if any routing software on Linux work as I expected. I 
tried quagga with zebra + ospf but not successful.

FYI, it's not a common case for link based fail-over/load balance.


Please give me suggestions!

Thanks in advance,

Changzhe


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-04  2:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26  6:39 A smart router for more than one default routes Han Changzhe
2015-02-26  7:30 ` Dave Taht
2015-02-26  9:31 ` Erik Auerswald
2015-02-27  5:58 ` Han Changzhe
2015-02-27  6:33 ` Han Changzhe
2015-02-28 12:53 ` Dennis Jacobfeuerborn
2015-02-28 16:19 ` Dave Taht
2015-03-04  2:49 ` Han Changzhe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.