root@OpenWrt:~# iptables -v -L
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
67 5432 delegate_input all -- any any anywhere anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
548 273K delegate_forward all -- any any anywhere anywhere
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
88 8877 delegate_output all -- any any anywhere anywhere
Chain delegate_forward (1 references)
pkts bytes target prot opt in out source destination
548 273K forwarding_rule all -- any any anywhere anywhere /* user chain for forwarding */
512 270K ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
36 2194 zone_lan_forward all -- br-lan any anywhere anywhere
0 0 zone_wan_forward all -- eth0.2 any anywhere anywhere
0 0 zone_wan_forward all -- eth1 any anywhere anywhere
0 0 zone_wan_forward all -- eth2 any anywhere anywhere
0 0 reject all -- any any anywhere anywhere
Chain delegate_input (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
67 5432 input_rule all -- any any anywhere anywhere /* user chain for input */
43 3773 ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
0 0 syn_flood tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
12 747 zone_lan_input all -- br-lan any anywhere anywhere
0 0 zone_wan_input all -- eth0.2 any anywhere anywhere
12 912 zone_wan_input all -- eth1 any anywhere anywhere
0 0 zone_wan_input all -- eth2 any anywhere anywhere
Chain delegate_output (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any lo anywhere anywhere
88 8877 output_rule all -- any any anywhere anywhere /* user chain for output */
65 7405 ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
0 0 zone_lan_output all -- any br-lan anywhere anywhere
0 0 zone_wan_output all -- any eth0.2 anywhere anywhere
23 1472 zone_wan_output all -- any eth1 anywhere anywhere
0 0 zone_wan_output all -- any eth2 anywhere anywhere
Chain forwarding_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain forwarding_rule (1 references)
pkts bytes target prot opt in out source destination
Chain forwarding_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain input_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain input_rule (1 references)
pkts bytes target prot opt in out source destination
Chain input_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain output_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain output_rule (1 references)
pkts bytes target prot opt in out source destination
Chain output_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain reject (7 references)
pkts bytes target prot opt in out source destination
12 912 REJECT tcp -- any any anywhere anywhere reject-with tcp-reset
0 0 REJECT all -- any any anywhere anywhere reject-with icmp-port-unreachable
Chain syn_flood (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
0 0 DROP all -- any any anywhere anywhere
Chain zone_lan_dest_ACCEPT (4 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any br-lan anywhere anywhere
Chain zone_lan_forward (1 references)
pkts bytes target prot opt in out source destination
36 2194 forwarding_lan_rule all -- any any anywhere anywhere /* user chain for forwarding */
36 2194 zone_wan_dest_ACCEPT all -- any any anywhere anywhere /* forwarding lan -> wan */
0 0 ACCEPT all -- any any anywhere anywhere ctstate DNAT /* Accept port forwards */
0 0 zone_lan_dest_ACCEPT all -- any any anywhere anywhere
Chain zone_lan_input (1 references)
pkts bytes target prot opt in out source destination
12 747 input_lan_rule all -- any any anywhere anywhere /* user chain for input */
0 0 ACCEPT all -- any any anywhere anywhere ctstate DNAT /* Accept port redirections */
12 747 zone_lan_src_ACCEPT all -- any any anywhere anywhere
Chain zone_lan_output (1 references)
pkts bytes target prot opt in out source destination
0 0 output_lan_rule all -- any any anywhere anywhere /* user chain for output */
0 0 zone_lan_dest_ACCEPT all -- any any anywhere anywhere
Chain zone_lan_src_ACCEPT (1 references)
pkts bytes target prot opt in out source destination
12 747 ACCEPT all -- br-lan any anywhere anywhere
Chain zone_wan_dest_ACCEPT (2 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any eth0.2 anywhere anywhere
59 3666 ACCEPT all -- any eth1 anywhere anywhere
0 0 ACCEPT all -- any eth2 anywhere anywhere
Chain zone_wan_dest_REJECT (1 references)
pkts bytes target prot opt in out source destination
0 0 reject all -- any eth0.2 anywhere anywhere
0 0 reject all -- any eth1 anywhere anywhere
0 0 reject all -- any eth2 anywhere anywhere
Chain zone_wan_forward (3 references)
pkts bytes target prot opt in out source destination
0 0 forwarding_wan_rule all -- any any anywhere anywhere /* user chain for forwarding */
0 0 zone_lan_dest_ACCEPT esp -- any any anywhere anywhere /* @rule[7] */
0 0 zone_lan_dest_ACCEPT udp -- any any anywhere anywhere udp dpt:isakmp /* @rule[8] */
0 0 ACCEPT all -- any any anywhere anywhere ctstate DNAT /* Accept port forwards */
0 0 zone_wan_dest_REJECT all -- any any anywhere anywhere
Chain zone_wan_input (3 references)
pkts bytes target prot opt in out source destination
12 912 input_wan_rule all -- any any anywhere anywhere /* user chain for input */
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:bootpc /* Allow-DHCP-Renew */
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-request /* Allow-Ping */
0 0 ACCEPT igmp -- any any anywhere anywhere /* Allow-IGMP */
0 0 ACCEPT tcp -- any any anywhere anywhere tcp spt:1900 /* @rule[9] */
0 0 ACCEPT all -- any any anywhere anywhere ctstate DNAT /* Accept port redirections */
12 912 zone_wan_src_REJECT all -- any any anywhere anywhere
Chain zone_wan_output (3 references)
pkts bytes target prot opt in out source destination
23 1472 output_wan_rule all -- any any anywhere anywhere /* user chain for output */
23 1472 zone_wan_dest_ACCEPT all -- any any anywhere anywhere
Chain zone_wan_src_REJECT (1 references)
pkts bytes target prot opt in out source destination
0 0 reject all -- eth0.2 any anywhere anywhere
12 912 reject all -- eth1 any anywhere anywhere
0 0 reject all -- eth2 any anywhere anywhere
root@OpenWrt:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 86 packets, 23662 bytes)
pkts bytes target prot opt in out source destination
86 23662 delegate_prerouting all -- any any anywhere anywhere
Chain INPUT (policy ACCEPT 12 packets, 747 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 16 packets, 1151 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
46 2734 delegate_postrouting all -- any any anywhere anywhere
Chain delegate_postrouting (1 references)
pkts bytes target prot opt in out source destination
46 2734 postrouting_rule all -- any any anywhere anywhere /* user chain for postrouting */
0 0 zone_lan_postrouting all -- any br-lan anywhere anywhere
0 0 zone_wan_postrouting all -- any eth0.2 anywhere anywhere
46 2734 zone_wan_postrouting all -- any eth1 anywhere anywhere
0 0 zone_wan_postrouting all -- any eth2 anywhere anywhere
Chain delegate_prerouting (1 references)
pkts bytes target prot opt in out source destination
86 23662 prerouting_rule all -- any any anywhere anywhere /* user chain for prerouting */
35 2050 zone_lan_prerouting all -- br-lan any anywhere anywhere
0 0 zone_wan_prerouting all -- eth0.2 any anywhere anywhere
51 21612 zone_wan_prerouting all -- eth1 any anywhere anywhere
0 0 zone_wan_prerouting all -- eth2 any anywhere anywhere
Chain postrouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain zone_lan_postrouting (1 references)
pkts bytes target prot opt in out source destination
0 0 postrouting_lan_rule all -- any any anywhere anywhere /* user chain for postrouting */
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
35 2050 prerouting_lan_rule all -- any any anywhere anywhere /* user chain for prerouting */
Chain zone_wan_postrouting (3 references)
pkts bytes target prot opt in out source destination
46 2734 postrouting_wan_rule all -- any any anywhere anywhere /* user chain for postrouting */
46 2734 MASQUERADE all -- any any anywhere anywhere
Chain zone_wan_prerouting (3 references)
pkts bytes target prot opt in out source destination
51 21612 prerouting_wan_rule all -- any any anywhere anywhere /* user chain for prerouting */