I currently have 2 ISP with the 2nd only being used for backup and gateway check ping route fail over using distance. Since I have a mostly Idle connection with the second ISP I want to send my voice traffic over that connection. The voice is tunneled through a l2tp so I guess I really want to send the l2tp traffic to the second connection, with a failover on the first connection.
Does anybody know of a quick and easy way to do this. Maybe policy route to the destination on that the l2tp terminates to?
Ok, when I add some mangle rules to just accept traffic going the following, the packet counter adds up.
From router to l2tp server:
output
postrouting
from l2tp serer to router:
input
prerouting
But I am thinking that if I use postrouting, the action will happen “post routing” and not send the vpn tunnel over the sceond connection.
the pre-routing chain seems to have no effect. If I use postrouting or output chain the reply to address is wrong when the packet hits the remote l2tp server and the connection does not establish
Argh, hitting a deadline. Bounty for the following working config. All details worked out in public forum.
ISP1 Primary
ISP2 Secondary
l2tp traffic prefers ISP2 but will fail over to ISP1 if it does not connect with ISP2
All traffic fails over to ISP2 if ISP1 down.