[tools] gmp: update to 5.0.4
[openwrt.git] / package / firewall / files / firewall.config
1 config defaults
2 option syn_flood 1
3 option input ACCEPT
4 option output ACCEPT
5 option forward REJECT
6 # Uncomment this line to disable ipv6 rules
7 # option disable_ipv6 1
8
9 config zone
10 option name lan
11 option network 'lan'
12 option input ACCEPT
13 option output ACCEPT
14 option forward REJECT
15
16 config zone
17 option name wan
18 option network 'wan'
19 option input REJECT
20 option output ACCEPT
21 option forward REJECT
22 option masq 1
23 option mtu_fix 1
24
25 config forwarding
26 option src lan
27 option dest wan
28
29 # We need to accept udp packets on port 68,
30 # see https://dev.openwrt.org/ticket/4108
31 config rule
32 option name Allow-DHCP-Renew
33 option src wan
34 option proto udp
35 option dest_port 68
36 option target ACCEPT
37 option family ipv4
38
39 # Allow IPv4 ping
40 config rule
41 option name Allow-Ping
42 option src wan
43 option proto icmp
44 option icmp_type echo-request
45 option family ipv4
46 option target ACCEPT
47
48 # Allow DHCPv6 replies
49 # see https://dev.openwrt.org/ticket/10381
50 config rule
51 option name Allow-DHCPv6
52 option src wan
53 option proto udp
54 option src_ip fe80::/10
55 option src_port 547
56 option dest_ip fe80::/10
57 option dest_port 546
58 option family ipv6
59 option target ACCEPT
60
61 # Allow essential incoming IPv6 ICMP traffic
62 config rule
63 option name Allow-ICMPv6-Input
64 option src wan
65 option proto icmp
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
75 option limit 1000/sec
76 option family ipv6
77 option target ACCEPT
78
79 # Allow essential forwarded IPv6 ICMP traffic
80 config rule
81 option name Allow-ICMPv6-Forward
82 option src wan
83 option dest *
84 option proto icmp
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
92 option limit 1000/sec
93 option family ipv6
94 option target ACCEPT
95
96 # include a file with users custom iptables rules
97 config include
98 option path /etc/firewall.user
99
100
101 ### EXAMPLE CONFIG SECTIONS
102 # do not allow a specific ip to access wan
103 #config rule
104 # option src lan
105 # option src_ip 192.168.45.2
106 # option dest wan
107 # option proto tcp
108 # option target REJECT
109
110 # block a specific mac on wan
111 #config rule
112 # option dest wan
113 # option src_mac 00:11:22:33:44:66
114 # option target REJECT
115
116 # block incoming ICMP traffic on a zone
117 #config rule
118 # option src lan
119 # option proto ICMP
120 # option target DROP
121
122 # port redirect port coming in on wan to lan
123 #config redirect
124 # option src wan
125 # option src_dport 80
126 # option dest lan
127 # option dest_ip 192.168.16.235
128 # option dest_port 80
129 # option proto tcp
130
131 # port redirect of remapped ssh port (22001) on wan
132 #config redirect
133 # option src wan
134 # option src_dport 22001
135 # option dest lan
136 # option dest_port 22
137 # option proto tcp
138
139 # allow IPsec/ESP and ISAKMP passthrough
140 #config rule
141 # option src wan
142 # option dest lan
143 # option protocol esp
144 # option target ACCEPT
145
146 #config rule
147 # option src wan
148 # option dest lan
149 # option src_port 500
150 # option dest_port 500
151 # option proto udp
152 # option target ACCEPT
153
154 ### FULL CONFIG SECTIONS
155 #config rule
156 # option src lan
157 # option src_ip 192.168.45.2
158 # option src_mac 00:11:22:33:44:55
159 # option src_port 80
160 # option dest wan
161 # option dest_ip 194.25.2.129
162 # option dest_port 120
163 # option proto tcp
164 # option target REJECT
165
166 #config redirect
167 # option src lan
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
174 # option proto tcp
This page took 0.052697 seconds and 5 git commands to generate.