<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Em 09/01/2019 14:56, Antonios Katsouros escreveu:<br>
<blockquote type="cite"
cite="mid:CAPOZpEowY+8uzxpFL-=bujNqDhnM86E_4FNVX=kN1O0S=hLPEA@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div>My connection seems not that stable so every time the vpn
falls and reconnects, the route is lost from the server. So
I have to go again to server and add the route ( route add
-net <a href="http://192.168.61.0/24"
moz-do-not-send="true">192.168.61.0/24</a> gw 10.50.20.2
). Is there a way I can do this automatically??? So when the
VPN is down and reconnects, after reconnection, the server
runs automatically this route on its self ( route add -net <a
href="http://192.168.61.0/24" moz-do-not-send="true">192.168.61.0/24</a>
gw 10.50.20.2 ) .</div>
<div><br>
</div>
<div>10.50.20.1 is the server, 10.50.20.2 is the other side
(client) which also is on the rest network behind.</div>
</div>
</div>
<br>
</blockquote>
I had a similar issue some months ago. You can add the
"leftsourceip" parameter to the config so the server will know the
way to the other side of the tunnel. Example:
leftsourceip=10.50.20.1<br>
Then you can stop adding the route manually.<br>
<br>
-Bruno<br>
</body>
</html>