Project

General

Profile

Actions

Bug #9146

closed

Met crash when set easyrule by command line

Added by co da over 6 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/22/2018
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

Hi everyone,
I met crash when set easyrule by command line
easyrule block lan 192.168.2.2
message:
PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 166, Message: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166
Stack trace:
#0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('192.168.2.2', 'lan')
#1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('192.168.2.2', 'lan', 'inet')
#2 /usr/local/bin/easyrule(101): easyrule_parse_block('lan', '192.168.2.2')
#3 {main}
thrown 2018-11-22 14:49:28
PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 166, Message: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166
Stack trace:
#0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('172.16.133.1', 'lan')
#1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('172.16.133.1', 'lan', 'inet')
#2 /usr/local/www/easyrule.php(47): easyrule_parse_block('lan', '172.16.133.1', 'inet')
#3 {main}
thrown
2018-11-22 14:51:09

Actions #1

Updated by co da over 6 years ago

co da wrote:

Hi everyone,
I met crash when set easyrule by command line
easyrule block lan 192.168.2.2
message:
PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 166, Message: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166
Stack trace:
#0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('192.168.2.2', 'lan')
#1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('192.168.2.2', 'lan', 'inet')
#2 /usr/local/bin/easyrule(101): easyrule_parse_block('lan', '192.168.2.2')
#3 {main}
thrown 2018-11-22 14:49:28
PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 166, Message: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166
Stack trace:
#0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('172.16.133.1', 'lan')
#1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('172.16.133.1', 'lan', 'inet')
#2 /usr/local/www/easyrule.php(47): easyrule_parse_block('lan', '172.16.133.1', 'inet')
#3 {main}
thrown
2018-11-22 14:51:09

after checked, that errors occur when I use argument "block" but "pass" is still work, both webGUI and commandline

Actions #2

Updated by Renato Botelho over 6 years ago

  • Status changed from New to Duplicate

Duplicate of #9119

Actions

Also available in: Atom PDF