[OpenWrt Wiki] Firewall configuration /etc/config/firewall
openwrt.org › docs › guide-userDec 16, 2021 · The protocol family (ipv4, ipv6 or any) these iptables rules are for. Defaults to any, but automatically degrades to ipv4 or ipv6 if respective addresses are listed in the same section. log: int : no : 0: Bit field to enable logging in the filter and/or mangle tables, bit 0 = filter, bit 1 = mangle. (Since r6397-7cc9914aae) log_limit: string ...
[OpenWrt Wiki] Netfilter In OpenWrt
openwrt.org › netfilter_iptables › netfilter_openwrtNetfilter In OpenWrt The purpose of this section is to briefly describe the netfilter/iptables subsystem and then delve into OpenWrt specifics. netfilter rules require a fine level of granularity to tune packet filtering. This can cause undesirable scenarios when many rules are matching on similar packets. Be careful using the iptable application!
[OpenWrt Wiki] Logging Forwarded Packets in OpenWrt
openwrt.org › iptables_log_targetsSep 08, 2019 · Logging Forwarded Packets in OpenWrt. This article demonstrates how to extend the firewall3 configuration to add iptable LOG targets for forwarded packets between the LAN -side and WAN -side of the router. The fw3 application does not support extended logging rules except for rejected packets, so these must be added using the iptables application.
[OpenWrt Wiki] Netfilter Management
openwrt.org › docs › guide-userSep 18, 2018 · You want to add a LOG target to see all HTTP traffic forwarded from your LAN to your WAN . Run fw3 or iptables -Ln to see the possible chains and rules, zone_lan_forward looks like a good chain to add a new rule for LOG, in /etc/firewall.user add iptables -A zone_lan_forward –dport 80 -j LOG –log-prefix “ HTTP - LAN -ALL:”. Now reload ...
[OpenWrt Wiki] fw3 Logging Rejected Packets
openwrt.org › fw3_traffic_loggingSep 07, 2020 · fw3 Logging Rejected Packets In the standard fw3 Configuration only REJECTED packets can be logged. The rules documented here can also be added to fw3 using the /etc/firewall.user include file. See fw3_iptables_logging. Before choosing to enable logging of REJECTED packets, please consider pros and cons: