Multiwan Squid on OPNsense 15.7

Started by trongkha, July 23, 2015, 09:51:23 AM

Previous topic - Next topic
July 23, 2015, 09:51:23 AM Last Edit: July 24, 2015, 01:34:33 AM by trongkha
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.


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. :)

July 23, 2015, 01:46:55 PM #3 Last Edit: July 23, 2015, 01:53:07 PM by trongkha
Quote from: 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. :)

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

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.

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.