Project

General

Profile

Regression #14870

Updated by Marcos M about 1 year ago

Aliases are shown incorrectly in rules as 'single/0'. This then throws errors loading the ruleset: 

 <pre> 
 Unresolvable source alias 'single/0' for rule 'Test rule' @ 2023-10-13 14:49:54 
 </pre> 

 That is this alias: 
 <pre> 
		 <alias> 
			 <name>Test1</name> 
			 <type>host</type> 
			 <address>172.21.24.8</address> 
			 <descr><![CDATA[Test alias]]></descr> 
			 <detail><![CDATA[Entry added Fri, 13 Oct 2023 14:45:57 +0100]]></detail> 
		 </alias> 
 </pre> 

 In this rule: 
 <pre> 
		 <rule> 
			 <id></id> 
			 <tracker>1697204983</tracker> <tracker>1692900595</tracker> 
			 <type>block</type> <type>pass</type> 
			 <interface>wan</interface> 
			 <ipprotocol>inet</ipprotocol> 
			 <tag></tag> <tag>test1</tag> 
			 <tagged></tagged> 
			 <max></max> 
			 <max-src-nodes></max-src-nodes> 
			 <max-src-conn></max-src-conn> 
			 <max-src-states></max-src-states> 
			 <statetimeout></statetimeout> 
			 <statetype><![CDATA[keep state]]></statetype> 
			 <os></os> 
			 <protocol>tcp</protocol> <protocol>icmp</protocol> 
			 <icmptype>any</icmptype> 
			 <srcmac></srcmac> 
			 <dstmac></dstmac> 
			 <source> 
				 <address>single/0</address> <any></any> 
			 </source> 
			 <destination> 
				 <any></any> 
			 </destination> 
			 <descr><![CDATA[Test tagging rule]]></descr> 
			 <bridgeto></bridgeto> 
			 <updated> 
				 <time>1697204983</time> <time>1692900595</time> 
				 <username><![CDATA[admin@172.21.16.8 (Local Database)]]></username> 
			 </updated> 
			 <created> 
				 <time>1697204983</time> <time>1692900595</time> 
				 <username><![CDATA[admin@172.21.16.8 (Local Database)]]></username> 
			 </created> 
		 </rule> 
 </pre> 

 Generating this ruleset: 
 <pre> 
 table <Test1> {     172.21.24.8 }  
 Test1 = "<Test1>" 
 ... 
 # Unresolvable source alias 'single/0' for rule 'Test rule' label "USER_RULE: Test rule" 
 </pre>

Back