Modify

Opened 6 years ago

Closed 6 years ago

Last modified 2 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:

Description

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

example:

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

This is due to the integer comparison in /lib/firewall/uci_firewall.sh:369

        [ "$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 6 years ago by jow

  • Owner changed from developers to jow

comment:2 Changed 6 years ago by jow

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

Fixed in r19765

comment:3 Changed 2 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

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


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

 
Note: See TracTickets for help on using tickets.