Page 1 of 1

Drop established connections after gateway in reachable

Posted: Wed Sep 09, 2015 12:12 pm
by reion
Hi to all! I have an router connected to internet (ether1) and back-up connection 3g usb modem. default route distance on ppp-out1 interface is 2. On static default route added for ether1 "check gateway=ping". I have 3 OVPN client interfaces. All works fine, if gateway is unreachable, ppp-out1 default route become active, and all traffic is routed through it. OSPF recalculates paths all is very good. BUT, when ether1 gateway becomes reachable, it's default gateway is active, all established connections still goes through ppp-out1. OVPN has established connections out of ppp-out1 and all traffic goes out ppp-out1.
How can I kill this connections, after first gateway is reachable?

Re: Drop established connections after gateway in reachable

Posted: Wed Sep 09, 2015 12:15 pm
by marrold
Please could you post your config?

Re: Drop established connections after gateway in reachable

Posted: Wed Sep 09, 2015 12:18 pm
by reion
Please could you post your config?
what config, marrold?

interface ppp-client print
Flags: X - disabled, R - running
0 R name="ppp-out1" max-mtu=1500 max-mru=1500 mrru=disabled port=usb2
data-channel=0 info-channel=0 apn="internet" pin="" user="" password=""
profile=default phone="" dial-command="ATDT" modem-init="" null-modem=no
dial-on-demand=no add-default-route=yes default-route-distance=2
use-peer-dns=yes keepalive-timeout=30 allow=pap,chap,mschap1,mschap2

ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 ether1 1
1 DS 0.0.0.0/0 ppp-out1 2
2 ADS 10.0.0.0/24 10.0.0.1 0
3 ADC 10.0.0.1/32 10.0.0.2 ovpn-R1_MTC 0
4 ADo 10.0.0.2/32 10.0.0.1 110
5 ADo 10.0.0.5/32 10.0.0.1 110
6 ADo 10.0.0.6/32 10.0.0.1 110
7 ADo 10.0.0.9/32 10.0.0.13 110
8 ADo 10.0.0.10/32 10.0.0.1 110
9 ADC 10.0.0.13/32 10.0.0.14 ovpn-R2 0
10 ADo 10.0.0.14/32 10.0.0.13 110
11 ADo 10.0.0.17/32 10.0.0.13 110
12 ADo 10.0.0.18/32 10.0.0.1 110
13 ADC 10.112.115.208/32 94.xxx.xxx.230 ppp-out1 0
14 ADC 91.214.202.0/24 91.xxx.xxx.91 ether1 0

Re: Drop established connections after gateway in reachable

Posted: Wed Sep 09, 2015 1:19 pm
by marrold
All of it, if possible.