6 # Uncomment this line to disable ipv6 rules
7 # option disable_ipv6 1
29 # We need to accept udp packets on port 68,
30 # see https://dev.openwrt.org/ticket/4108
32 option name Allow-DHCP-Renew
41 option name Allow-Ping
44 option icmp_type echo-request
48 # Allow DHCPv6 replies
49 # see https://dev.openwrt.org/ticket/10381
51 option name Allow-DHCPv6
54 option src_ip fe80::/10
56 option dest_ip fe80::/10
61 # Allow essential incoming IPv6 ICMP traffic
63 option name Allow-ICMPv6-Input
66 list icmp_type echo-request
67 list icmp_type destination-unreachable
68 list icmp_type packet-too-big
69 list icmp_type time-exceeded
70 list icmp_type bad-header
71 list icmp_type unknown-header-type
72 list icmp_type router-solicitation
73 list icmp_type neighbour-solicitation
78 # Allow essential forwarded IPv6 ICMP traffic
80 option name Allow-ICMPv6-Forward
84 list icmp_type echo-request
85 list icmp_type destination-unreachable
86 list icmp_type packet-too-big
87 list icmp_type time-exceeded
88 list icmp_type bad-header
89 list icmp_type unknown-header-type
94 # include a file with users custom iptables rules
96 option path /etc/firewall.user
99 ### EXAMPLE CONFIG SECTIONS
100 # do not allow a specific ip to access wan
103 # option src_ip 192.168.45.2
106 # option target REJECT
108 # block a specific mac on wan
111 # option src_mac 00:11:22:33:44:66
112 # option target REJECT
114 # block incoming ICMP traffic on a zone
120 # port redirect port coming in on wan to lan
123 # option src_dport 80
125 # option dest_ip 192.168.16.235
126 # option dest_port 80
129 # port redirect of remapped ssh port (22001) on wan
132 # option src_dport 22001
134 # option dest_port 22
137 # allow IPsec/ESP and ISAKMP passthrough
141 # option protocol esp
142 # option target ACCEPT
147 # option src_port 500
148 # option dest_port 500
150 # option target ACCEPT
152 ### FULL CONFIG SECTIONS
155 # option src_ip 192.168.45.2
156 # option src_mac 00:11:22:33:44:55
159 # option dest_ip 194.25.2.129
160 # option dest_port 120
162 # option target REJECT
166 # option src_ip 192.168.45.2
167 # option src_mac 00:11:22:33:44:55
168 # option src_port 1024
169 # option src_dport 80
170 # option dest_ip 194.25.2.129
171 # option dest_port 120