%
local nfs = require "nixio.fs"
local has_app_filter = nfs.access("/etc/config/appfilter")
local has_access_control = nfs.access("/etc/config/macfilter")
%>
<%+header%>
<%:Settings%>
<%:Bypass mode cannot count downstream traffic because traffic is directly forwarded to terminals at Layer 2 through the gateway.%>
<%:In bypass mode, it is recommended to disable IPv6 on terminals to prevent terminals from forwarding directly to the main router through IPv6.%>
<%:LAN interface name for terminal detection. Default is bridge interface (br-lan). If LAN port is changed to physical interface, please modify to the corresponding name, such as eth0.%>
<%:After enabled, OAF sends TCP RST for filtered TCP connections.%>
<% if has_app_filter then %>
<% end %>
<% if has_access_control then %>
<% end %>
<%:Internet record retention time%>
<%:App records minimum duration%>
MB
<%:History data size limit%>
<%:User's App record data will be stored in this directory.%>
<%:The user's basic data and real-time data are stored in this directory, such as online duration, traffic usage and other information. The default is a temporary directory and will not be retained after reboot. You can change it to a persistent directory, such as /etc/fwx.%>
<%:After enabled, related acceleration modules will be automatically disabled, including hardware acceleration, software acceleration and others, to prevent filtering failures caused by acceleration. It is recommended to restart the device after modification.%>