OPNsense Forum

English Forums => General Discussion => Topic started by: trongkha on July 23, 2015, 09:51:23 am

Title: Multiwan Squid on OPNsense 15.7
Post by: trongkha on July 23, 2015, 09:51:23 am
I am running OPNsense 15.7 on VirtualBox with 3 network interfaces.
em0: WAN
em1: LAN
em2: OPT

I tested MultiWan on this machine and it works well. (without squid)

But Squid only uses default wan (not 2 WAN). Are there any better method to make Squid works with 2 WAN?

Edit 1: I configured floating but it not works.

Thanks for help.
Title: Re: Multiwan Squid on OPNsense 15.7
Post by: jimmy shao on July 23, 2015, 12:03:08 pm
Same thing happens here.
Title: Re: Multiwan Squid on OPNsense 15.7
Post by: franco on July 23, 2015, 12:27:03 pm
Local services on the firewall default to the default gateway and thus only work in correctly failover mode.

There are a afew tutorials to make this work on pfSense, a good starting point would be:

https://forum.pfsense.org/index.php?topic=37083.0

If you find a solution that works for OPNsense please share it with everyone. Thanks. :)
Title: Re: Multiwan Squid on OPNsense 15.7
Post by: trongkha on July 23, 2015, 01:46:55 pm
Local services on the firewall default to the default gateway and thus only work in correctly failover mode.

There are a afew tutorials to make this work on pfSense, a good starting point would be:

https://forum.pfsense.org/index.php?topic=37083.0

If you find a solution that works for OPNsense please share it with everyone. Thanks. :)

I had tried solutions in that link before I started a new topic in this forum, but it doesn't work. Anyway, thanks for your help, franco  ;D
Title: Re: Multiwan Squid on OPNsense 15.7
Post by: franco on July 23, 2015, 02:09:20 pm
Did you also see https://dl.dropboxusercontent.com/u/7260185/pfSense_Web_Proxy_with_multi-WAN_links.pdf ?

The "tcp_outgoing_address 127.0.0.1" could also be set in the template at the bottom for testing purposes:

/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf

After edit, reapply your changes in the GUI.
Title: Re: Multiwan Squid on OPNsense 15.7
Post by: jimmy shao on July 23, 2015, 03:00:42 pm
Well...
just follow the instruction(Both PDF and Forum) and still not work.
look into the PDF, seems it's a solution for fail over, not for load balance.