OPNsense Forum

English Forums => General Discussion => Topic started by: soutrikand on July 10, 2018, 03:31:07 pm

Title: Gateway Switching
Post by: soutrikand on July 10, 2018, 03:31:07 pm
in my situation,
i have two gateways that are for Internet ( 2 isp gateways)
and 1 gateway to reach lan of VPN remote network
and 1 local gateway that has a static route to another network.

The problem i am facing is, when the internet is down, the default gateway is switched to one of the available gateways (usually selecting the last local gateway i have added).
Since the squid proxy sends outgoing traffic through default gateway and not gateway groups, the web surfing stops.
connections to all other ports that are not redirected to proxy are working great.

it would be good if there was a way to define gateways as WAN and Local .
and also if squid could direct all outgoing traffic through load balancing gateways.

any help is appreciated.

Thanks and regards.
Title: Re: Gateway Switching
Post by: mimugmail on July 10, 2018, 03:40:23 pm
Yes, this is a known limitation right now. At the moment there's no chance for default gateway switching and more that 2 gateways, sorry.  :'(
Title: Re: Gateway Switching
Post by: soutrikand on July 11, 2018, 07:30:10 am
is there a way i can write some script to do the switching ?
or better to ask, can i write a script that will not be removed by opnsense on reboot?
Title: Re: Gateway Switching
Post by: mimugmail on July 11, 2018, 11:37:33 am
Can you open the settings of your third gateway and set "Mark gateway as down"? Just for testing ...