Modify

Opened 8 years ago

Closed 8 years ago

#7432 closed defect (worksforme)

[firewall] Fail at include two user files

Reported by: opotonil Owned by: developers
Priority: high Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03
Keywords: firewall include Cc:

Description

I am including two user files on /etc/config/firewall (/etc/firewall.user and /etc/firewall6.user) but it not load nat rules from /etc/firewall.user.

If I combine /etc/firewall.user and /etc/firewall6.user at /etc/firewall.user and I only include this one works well.

Thanks.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by anonymous

Normal. Only /etc/firewall.user is supported for including custom rules...

comment:2 Changed 8 years ago by anonymous

config 'include'

option 'path' '/etc/firewall.user'
option 'path' '/etc/firewall6.user'

It load rules from "/etc/firewall.user" and "/etc/firewall6.user"(tested) but it not load nat rules from "/etc/firewall.user".

comment:3 Changed 8 years ago by anonymous

It's true, sorry. Only load rules from last include file.

comment:4 Changed 8 years ago by jow

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

You need two include sections:

config include
  option 'path' '/etc/firewall.user'

config include
  option 'path' '/etc/firewall6.user'

This is also documented at http://wiki.openwrt.org/doc/uci/firewall#manual.iptables.rules

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.