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
42 option icmp_type echo-request
46 # Allow DHCPv6 replies
47 # see https://dev.openwrt.org/ticket/10381
51 option src_ip fe80::/10
53 option dest_ip fe80::/10
58 # Allow essential incoming IPv6 ICMP traffic
62 list icmp_type echo-request
63 list icmp_type destination-unreachable
64 list icmp_type packet-too-big
65 list icmp_type time-exceeded
66 list icmp_type bad-header
67 list icmp_type unknown-header-type
68 list icmp_type router-solicitation
69 list icmp_type neighbour-solicitation
74 # Allow essential forwarded IPv6 ICMP traffic
79 list icmp_type echo-request
80 list icmp_type destination-unreachable
81 list icmp_type packet-too-big
82 list icmp_type time-exceeded
83 list icmp_type bad-header
84 list icmp_type unknown-header-type
89 # include a file with users custom iptables rules
91 option path /etc/firewall.user
94 ### EXAMPLE CONFIG SECTIONS
95 # do not allow a specific ip to access wan
98 # option src_ip 192.168.45.2
101 # option target REJECT
103 # block a specific mac on wan
106 # option src_mac 00:11:22:33:44:66
107 # option target REJECT
109 # block incoming ICMP traffic on a zone
115 # port redirect port coming in on wan to lan
118 # option src_dport 80
120 # option dest_ip 192.168.16.235
121 # option dest_port 80
124 # port redirect of remapped ssh port (22001) on wan
127 # option src_dport 22001
129 # option dest_port 22
132 # allow IPsec/ESP and ISAKMP passthrough
136 # option protocol esp
137 # option target ACCEPT
142 # option src_port 500
143 # option dest_port 500
145 # option target ACCEPT
147 ### FULL CONFIG SECTIONS
150 # option src_ip 192.168.45.2
151 # option src_mac 00:11:22:33:44:55
154 # option dest_ip 194.25.2.129
155 # option dest_port 120
157 # option target REJECT
161 # option src_ip 192.168.45.2
162 # option src_mac 00:11:22:33:44:55
163 # option src_port 1024
164 # option src_dport 80
165 # option dest_ip 194.25.2.129
166 # option dest_port 120