Author Topic: Limit up to tap99  (Read 1302 times)

thiagotgc

  • Zen Warrior
  • ***
  • Posts: 129
  • Karma: +1/-0
    • View Profile
Limit up to tap99
« on: July 17, 2023, 03:59:56 pm »
I am using Zentyal 5.0.1, and I need to use more than 99 VPN connections... But I get the limit message.

Quote
2023/07/17 10:49:30 ERROR> GlobalImpl.pm:661 EBox::GlobalImpl::saveAllModules - Failed to save changes in module openvpn: Maximum number of tap or tun interfaces reached
2023/07/17 10:49:34 ERROR> InterfaceTable.pm:126 EBox::OpenVPN::Model::InterfaceTable::_nextInterfaceNumber - Maximum number of tap or tun interfaces reached at Maximum number of tap or tun interfaces reached at / usr/share/perl5/EBox/OpenVPN/Model/InterfaceTable.pm line 126

I need to increase or remove this limit...

thiagotgc

  • Zen Warrior
  • ***
  • Posts: 129
  • Karma: +1/-0
    • View Profile
Re: Limit up to tap99
« Reply #1 on: July 18, 2023, 07:32:52 pm »
I updated to Zentyal 6.2 but the limitation still exists!

I found a way to fix the limitation:

Quote
vim /usr/share/perl5/EBox/OpenVPN/Model/InterfaceTable.pm

from:
Code: [Select]
use constant MAX_IFACE_NUMBER => 99;
for:
Code: [Select]
use constant MAX_IFACE_NUMBER => 999;