M
M
MorozovNsk2014-04-26 22:48:39
linux
MorozovNsk, 2014-04-26 22:48:39

linux. Routing with 3g and wifi connection

Hello.
There is a server on Debian, a 3g modem is plugged into it and it is connected to the network via wi-fi, which periodically falls off.
The task is as follows: if there is a wi-f connection, drive all traffic through it, if the connection has fallen off, drive traffic through 3g.
Now when a 3g connection appears, all traffic goes through it. (((
I have a feeling that it's easy enough to achieve what you want, but google doesn't work.
Output netstat -n -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.66.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2014-04-27
@inkvizitor68sl

https://code.google.com/p/wanfailoverscript/ see something like that.
In general, look for something on the request "linux failover WAN".

D
dpvpro, 2014-04-28
@dpvpro

habrahabr.ru/post/30076 - isn't it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question