Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#6704 closed defect (fixed)

Parsing of IP range in firewall redirect rules fails

Reported by: towolf <towolf@…> Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze trunk
Keywords: Cc:


When I specify a src_dport range in /etc/config/firewall but no dest_port then starting the firewall gives the error "bad number"


config redirect            
        option src              wan
        option src_dport        '16881-16900'
        option dest             lan      
        option dest_ip
        option proto            tcp

This is due to the integer comparison in /lib/firewall/

        [ "$dest_port_first" -ne "$dest_port_last" ] && { \

When I changed the boolean comparison to string matching with "!=" it worked.

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by jow

  • Owner changed from developers to jow

comment:2 Changed 8 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r19765

comment:3 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.