OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: GOCE on April 11, 2018, 05:32:42 pm

Title: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
Post by: GOCE on April 11, 2018, 05:32:42 pm
Since updating to 18.1.5 I got a lot of these errors (see attached screenshot).

My only workaround was to disable the "Block bogon networks" checkbox on my WAN interfaces.
The "Block bogon networks" rule was only applied to WAN interfaces.

The firewalls have 16GB RAM with default (10%) setting for "Firewall Maximum States".
Tried it also with 4000000 (25%) for "Firewall Maximum States" without any positive change.

Don"t know what could have caused these errors and would be thankful if anybody could help
me debug the root cause for these errors.

Regards
Title: Re: cannot define table bogonsv6: Cannot allocate memory
Post by: schnauz on April 12, 2018, 10:13:18 pm
I have the same with 18.1.6:
Code: [Select]
There were error(s) loading the rule: /tmp/rules.debug:15: cannot define table bogonsv6: Cannot allocate memory - The line in questions reads [15]: table persist file /usr/local/etc/bogonsv6.
Title: Re: cannot define table bogonsv6: Cannot allocate memory
Post by: neal.schulz on April 13, 2018, 08:16:53 am
Just in case it helps;
I saw this too. We don't use IPv6 so I disabled IPv6 in the firewall settings and the problem went away, and allows us to still block IPv4 Bogons.
Title: Re: cannot define table bogonsv6: Cannot allocate memory
Post by: franco on April 13, 2018, 01:17:52 pm
This has been frequently reported and answered.

Go to Firewall: Settings: Advanced: enter a maximum table entries value of "500000".

The bogons file for IPv6 seems to have grown recently as provided by https://www.team-cymru.com/bogon-reference.html and we are working on a more permanent fix but it's not ready for general consumption just yet.


Cheers,
Franco
Title: Re: SOLVED cannot define table bogonsv6: Cannot allocate memory
Post by: GOCE on April 13, 2018, 08:12:39 pm
Thanks franco, that solved it for me.

Regards
Title: Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
Post by: schnauz on April 14, 2018, 08:34:54 am
Quick workaround, thanks Franco. It works for me.
Title: Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
Post by: franco on April 16, 2018, 03:58:01 pm
Unfortunately that is not the workaround, it's the fix. But we will put an automatic fix in place to avoid such problems in the future. :)


Cheers,
Franco
Title: Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
Post by: NightShade on May 02, 2018, 07:05:29 pm
Glad to see I am not the only one who was having the issue.  Thanks for the fix information. 
Title: Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
Post by: franco on May 03, 2018, 09:04:30 am
The automatic table size fix I spoke of ships today.


Cheers,
Franco