#20032: Custom Firewall Rules Only Load on System Reboot
----------------------------------+-----------------------------------
 Reporter:  anonymous357          |      Owner:
     Type:  defect                |     Status:  new
 Priority:  normal                |  Milestone:  Barrier Breaker 14.07
Component:  luci                  |    Version:  Barrier Breaker 14.07
 Keywords:  custom firewall rule  |
----------------------------------+-----------------------------------
 The Custom Rules page in LuCI reads:
 ''''''"The commands are executed after each firewall restart, right after
 the default ruleset has been loaded."''''''

 '''Steps to reproduce:'''

 1. In LuCI, create custom firewall DNAT rule for single a NON TCP/UDP/ICMP
 IP protocol by navigating to 'Network' > 'Firewall' > 'Custom Rules':

 Static:
 ''iptables -t nat -I PREROUTING 1 -p <IP.PROTO_NO> '''-d <WAN_IP>''' -j
 DNAT --to-destination <LAN_IP>
 iptables -t filter -I FORWARD 1 -p <IP.PROTO_NO> -d <LAN_IP> -j ACCEPT''

 Or Dynamic:
 ''iptables -t nat -I PREROUTING 1 -p 4 '''-i eth0.2''' -j DNAT --to-
 destination 192.168.7.5
 iptables -t filter -I FORWARD 1 -p 4 -d 192.168.7.5 -j ACCEPT''


 2. Click "Submit"
 3. Navigate to 'Status'> 'Firewall'
 4. Click "Restart Firewall"

 '''Changes do not appear.'''

 '''In order to apply rules:'''

 1. Navigate to 'System' > 'Reboot'
 2. Click 'Perform reboot'
 3. After reboot, log in
 4. Navigate to 'Status'> 'Firewall'

 '''Changes appear.'''

 Image used: barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-
 mynet-n750-squashfs-factory.bin

 Device: Western Digital - My Net N750

--
Ticket URL: <https://dev.openwrt.org/ticket/20032>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to