OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: jalalahmadi on September 10, 2017, 07:00:47 am

Title: Multi WAN Problem !!!
Post by: jalalahmadi on September 10, 2017, 07:00:47 am
Hi
Please help me , After update 7.1 to 7.7 multi wan not work ?

Thank you
Title: Re: Multi WAN Problem !!!
Post by: phoenix on September 10, 2017, 08:40:21 am
Please help me , After update 7.1 to 7.7 multi wan not work ?
Some slightly better description of what you mean by '...does not work' might get you some help. What is the exact description of the problem?
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 10, 2017, 10:21:31 am
Sorry
I setup multi wan the following step

1-Add monitor IP’s to the gateways
2-Add a gateway group
3-Configure DNS for each gateway
4-Use policy based routing to utilize our gateway group
5-Add a firewall rule for DNS traffic that is intended for the firewall itself

but dose not work just work one WAN
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 11, 2017, 10:25:38 am
PHP Errors:
[11-Sep-2017 08:19:46 Etc/UTC] PHP Warning:  str_repeat() expects parameter 2 to be integer, string given in /usr/local/opnsense/mvc/app/library/OPNsense/Firewall/Plugin.php on line 101
[11-Sep-2017 08:19:46 Etc/UTC] PHP Stack trace:
[11-Sep-2017 08:19:46 Etc/UTC] PHP   1. {main}() /usr/local/etc/rc.bootup:0
[11-Sep-2017 08:19:46 Etc/UTC] PHP   2. filter_configure_sync() /usr/local/etc/rc.bootup:103
[11-Sep-2017 08:19:46 Etc/UTC] PHP   3. OPNsense\Firewall\Plugin->setGatewayGroups() /usr/local/etc/inc/filter.inc:396
[11-Sep-2017 08:19:46 Etc/UTC] PHP   4. str_repeat() /usr/local/opnsense/mvc/app/library/OPNsense/Firewall/Plugin.php:101
[11-Sep-2017 08:19:46 Etc/UTC] PHP Warning:  str_repeat() expects parameter 2 to be integer, string given in /usr/local/opnsense/mvc/app/library/OPNsense/Firewall/Plugin.php on line 101
[11-Sep-2017 08:19:46 Etc/UTC] PHP Stack trace:

Please help me  :-[
Title: Re: Multi WAN Problem !!!
Post by: fraenki on September 13, 2017, 11:51:06 pm
Please update to OPNsense 17.7.2, which was released today.

If that doesn't solve your problem please paste a (anonymized) copy of your config.xml somewhere. Looks like a bug in the code that is triggered by your configuration.


Regards
- Frank
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 14, 2017, 06:29:37 am
Hi
Thank you fraenki
I update OPNsense to 17.7.2 but still have problems .

Code: [Select]
error(s) loading the rules: /tmp/rules.debug:92: syntax error - The line in question reads [92]: pass in quick on em0 route-to { } round-robin inet from {(em0:network)} to {any} keep state label USER_RULE ]

I noticed the problem in this file filter.inc when I change this file with the older version 7.1, it works fine !!
My config is https://drive.google.com/file/d/0B6JijbKHsPLQSEpQbG8wOFppc0E/view

Best Regards!
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 18, 2017, 11:04:53 am
Please help me
when I use Combining Balancing mode and  I select tier 1 for two wans .
It gives me this error :
Code: [Select]
error(s) loading the rules: /tmp/rules.debug:92: syntax error - The line in question reads [92]: pass in quick on em0 route-to { } round-robin inet from {(em0:network)} to {any} keep state label USER_RULE ]

Thanks :(

Title: Re: Multi WAN Problem !!!
Post by: fabian on September 18, 2017, 11:48:25 am
from the rule I would say that there is something wrong with the gateway set as an empty set is given in the rule.
Title: Re: Multi WAN Problem !!!
Post by: franco on September 18, 2017, 12:09:50 pm
Do you know where the config originally came from? Which was your first OPNsense version, was this maybe config of another firewall? Try this commit:

https://github.com/opnsense/core/commit/4d2e840

Run this from the command line:

# opnsense-patch 4d2e840


Cheers,
Franco
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 18, 2017, 02:11:25 pm
Hi
Thank you so much franco
After install patch 4d2e840 , It's ok  ;)
What's problem?

Title: Re: Multi WAN Problem !!!
Post by: franco on September 18, 2017, 02:16:12 pm
That's what we're hoping you could help with by answering the following:

1. Which was your first OPNsense version?
2. Was this maybe config of another firewall?

According to Ad it is worth fixing, but he said we don't seem to write the config.xml that way (anymore).

If you came e.g. from 16.7 directly to 17.7 that would help to narrow the answer down.
Title: Re: Multi WAN Problem !!!
Post by: jalalahmadi on September 18, 2017, 02:33:31 pm
I  install opnsense 7.7 after that update to 7.7.2