Hi,
I am running openwrt cc, and having trouble with date based firewall rules. Time based rules (without date) work fine, but as soon as I add the date, the time no longer works. The resulting iptables do not look right. See below.
firewall uci:
config rule
option name 'lan-00:16:3e:d2:96:cf'
option src 'lan'
option dest 'wan'
option proto 'any'
option target 'REJECT'
option src_mac '00:16:3e:d2:96:cf'
option start_date '2018-04-10'
option stop_date '2018-04-11'
option start_time '20:30:00'
option stop_time '20:40:00'
option utc_time '0'
iptables entry:
# iptables -L -v | grep 00:16:3E:D2:96:CF
0 0 zone_wan_dest_REJECT all -- any any anywhere anywhere MAC 00:16:3E:D2:96:CF TIME from 20:30:00 to 20:40:00 starting from 2018-04-10 01:00:00 until date 2018-04-11 01:00:00 UTC /* lan-00:16:3e:d2:96:cf */
Notice the date values are followed by "01:00:00". I can't seem to control these values in any way, but I suspect this is the problem.
Does anyone know what is wrong?
Thanks.
Duane.