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 essential incoming IPv6 ICMP traffic
51 list icmp_type router-solicitation
52 list icmp_type router-advertisement
53 list icmp_type neighbour-solicitation
54 list icmp_type neighbour-advertisement
55 list icmp_type echo-request
56 list icmp_type destination-unreachable
57 list icmp_type packet-too-big
58 list icmp_type time-exceeded
63 # Drop leaking router advertisements on WAN
68 option icmp_type router-advertisement
72 # include a file with users custom iptables rules
74 option path /etc/firewall.user
77 ### EXAMPLE CONFIG SECTIONS
78 # do not allow a specific ip to access wan
81 # option src_ip 192.168.45.2
84 # option target REJECT
86 # block a specific mac on wan
89 # option src_mac 00:11:22:33:44:66
90 # option target REJECT
92 # block incoming ICMP traffic on a zone
98 # port redirect port coming in on wan to lan
101 # option src_dport 80
103 # option dest_ip 192.168.16.235
104 # option dest_port 80
107 # port redirect of remapped ssh port (22001) on wan
110 # option src_dport 22001
112 # option dest_port 22
115 # allow IPsec/ESP and ISAKMP passthrough
119 # option protocol esp
120 # option target ACCEPT
125 # option src_port 500
126 # option dest_port 500
128 # option target ACCEPT
130 ### FULL CONFIG SECTIONS
133 # option src_ip 192.168.45.2
134 # option src_mac 00:11:22:33:44:55
137 # option dest_ip 194.25.2.129
138 # option dest_port 120
140 # option target REJECT
144 # option src_ip 192.168.45.2
145 # option src_mac 00:11:22:33:44:55
146 # option src_port 1024
147 # option src_dport 80
148 # option dest_ip 194.25.2.129
149 # option dest_port 120