OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [SOLVED] cannot define table bogonsv6: Cannot allocate memory
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] cannot define table bogonsv6: Cannot allocate memory  (Read 7295 times)

GOCE

  • Newbie
  • *
  • Posts: 26
  • Karma: 1
    • View Profile
[SOLVED] cannot define table bogonsv6: Cannot allocate memory
« 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
« Last Edit: April 13, 2018, 08:13:04 pm by GOCE »
Logged

schnauz

  • Newbie
  • *
  • Posts: 31
  • Karma: 6
    • View Profile
Re: cannot define table bogonsv6: Cannot allocate memory
« Reply #1 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.
Logged

neal.schulz

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: cannot define table bogonsv6: Cannot allocate memory
« Reply #2 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 10486
  • Karma: 830
    • View Profile
Re: cannot define table bogonsv6: Cannot allocate memory
« Reply #3 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
Logged

GOCE

  • Newbie
  • *
  • Posts: 26
  • Karma: 1
    • View Profile
Re: SOLVED cannot define table bogonsv6: Cannot allocate memory
« Reply #4 on: April 13, 2018, 08:12:39 pm »
Thanks franco, that solved it for me.

Regards
Logged

schnauz

  • Newbie
  • *
  • Posts: 31
  • Karma: 6
    • View Profile
Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
« Reply #5 on: April 14, 2018, 08:34:54 am »
Quick workaround, thanks Franco. It works for me.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 10486
  • Karma: 830
    • View Profile
Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
« Reply #6 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
Logged

NightShade

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
« Reply #7 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. 
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 10486
  • Karma: 830
    • View Profile
Re: [SOLVED] cannot define table bogonsv6: Cannot allocate memory
« Reply #8 on: May 03, 2018, 09:04:30 am »
The automatic table size fix I spoke of ships today.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • [SOLVED] cannot define table bogonsv6: Cannot allocate memory
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2