Quantcast
Channel: Tomato Firmware
Viewing all articles
Browse latest Browse all 5255

Force to check and reconnect periodcally if Tun12 is connected

$
0
0
Hi all,

I have am currently using Shibby v136 for openvpn via tun 12 or tun 11. Previously I had wanted to route via routing policy and table and now I would like route all traffic through vpn. I have ignore redirect gateway and redirect Internet traffic unchecked. I would like to know if @eibgrad 's previous script can be simlified to periodically check and reconnect all traffic via tun12 or 11 (depending on which one is connected)?

Code:
#!/bin/sh -x
(
WAIT_FOR=120...
Force to check and reconnect periodcally if Tun12 is connected

Viewing all articles
Browse latest Browse all 5255