OPNsense Forum

English Forums => Virtual private networks => Topic started by: amastrangelo on November 02, 2023, 10:06:30 AM

Title: problem on /usr/local/opnsense/scripts/openvpn/ovpn_event.py
Post by: amastrangelo on November 02, 2023, 10:06:30 AM
good morning,
I experience a problem with openvpn OTP:
the problem is when this file is executed:
/usr/local/opnsense/scripts/openvpn/ovpn_event.py

specifically this routine:

elif params.script_type == 'learn-address':
        if os.fork() == 0:
            sys.exit(subprocess.run(
                ['/usr/local/opnsense/scripts/filter/update_tables.py', '--types', 'authgroup']
            ).returncode)

That procedure is called from this file
/usr/local/opnsense/scripts/filter/update_tables.py

when executed the cpu is saturated, with the python process running at 100% and packet loss is experienced making the vpn unusable.

For now I solved it by changing the name "learn-address" to something that doesn't exist.

I would like to know how I can solve the problem

Thank you