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 echo-reply
68 list icmp_type destination-unreachable
69 list icmp_type packet-too-big
70 list icmp_type time-exceeded
71 list icmp_type bad-header
72 list icmp_type unknown-header-type
73 list icmp_type router-solicitation
74 list icmp_type neighbour-solicitation
79 # Allow essential forwarded IPv6 ICMP traffic
81 option name Allow-ICMPv6-Forward
85 list icmp_type echo-request
86 list icmp_type echo-reply
87 list icmp_type destination-unreachable
88 list icmp_type packet-too-big
89 list icmp_type time-exceeded
90 list icmp_type bad-header
91 list icmp_type unknown-header-type
96 # include a file with users custom iptables rules
98 option path /etc/firewall.user
101 ### EXAMPLE CONFIG SECTIONS
102 # do not allow a specific ip to access wan
105 # option src_ip 192.168.45.2
108 # option target REJECT
110 # block a specific mac on wan
113 # option src_mac 00:11:22:33:44:66
114 # option target REJECT
116 # block incoming ICMP traffic on a zone
122 # port redirect port coming in on wan to lan
125 # option src_dport 80
127 # option dest_ip 192.168.16.235
128 # option dest_port 80
131 # port redirect of remapped ssh port (22001) on wan
134 # option src_dport 22001
136 # option dest_port 22
139 # allow IPsec/ESP and ISAKMP passthrough
143 # option protocol esp
144 # option target ACCEPT
149 # option src_port 500
150 # option dest_port 500
152 # option target ACCEPT
154 ### FULL CONFIG SECTIONS
157 # option src_ip 192.168.45.2
158 # option src_mac 00:11:22:33:44:55
161 # option dest_ip 194.25.2.129
162 # option dest_port 120
164 # option target REJECT
168 # option src_ip 192.168.45.2
169 # option src_mac 00:11:22:33:44:55
170 # option src_port 1024
171 # option src_dport 80
172 # option dest_ip 194.25.2.129
173 # option dest_port 120